Teuchos - Trilinos Tools Package
Version of the Day
|
Basic portable thread lock primative class. More...
#include <Teuchos_SharedAccessPolicy.hpp>
Public Member Functions | |
ThreadLock () | |
~ThreadLock () | |
bool | try_lock () |
void | lock () |
void | unlock () |
Basic portable thread lock primative class.
This is a heavy-weight appraoch to lock a thread.
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 67 of file Teuchos_SharedAccessPolicy.hpp.
Teuchos::ThreadLock::ThreadLock | ( | ) |
Teuchos::ThreadLock::~ThreadLock | ( | ) |
bool Teuchos::ThreadLock::try_lock | ( | ) |
void Teuchos::ThreadLock::lock | ( | ) |
void Teuchos::ThreadLock::unlock | ( | ) |