Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

template<class T >
Teuchos::ScopedThreadLock< T >::~ScopedThreadLock ( )


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