Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Teuchos::ScopedThreadLock< T > Class Template Reference

Stack-based object for locking a thread. More...

#include <Teuchos_SharedAccessPolicy.hpp>

Public Member Functions

 ScopedThreadLock (ThreadLock &lock)
 
 ~ScopedThreadLock ()
 

Detailed Description

template<class T>
class Teuchos::ScopedThreadLock< T >

Stack-based object for locking a thread.

This class is used to lock a function so that no matter how the function is existed the lock will be released.

This class may or may not be exposed in the Teuchos namespace. It might just be exposed as a typedef in SharedAccessPolicy.

Definition at line 91 of file Teuchos_SharedAccessPolicy.hpp.

Constructor & Destructor Documentation

◆ ScopedThreadLock()

template<class T >
Teuchos::ScopedThreadLock< T >::ScopedThreadLock ( ThreadLock & lock)
explicit

◆ ~ScopedThreadLock()


The documentation for this class was generated from the following file: