Teuchos Package Browser (Single Doxygen Collection)
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 33 of file Teuchos_SharedAccessPolicy.hpp.
Teuchos::ThreadLock::ThreadLock | ( | ) |
Teuchos::ThreadLock::~ThreadLock | ( | ) |
bool Teuchos::ThreadLock::try_lock | ( | ) |
void Teuchos::ThreadLock::lock | ( | ) |
void Teuchos::ThreadLock::unlock | ( | ) |