casa
5.7.0-16
|
Wrapper around a pthreads mutex. More...
#include <Mutex.h>
Public Types | |
enum | Type { Normal, ErrorCheck, Recursive, Default, Auto } |
Define the type of mutex. More... | |
Public Member Functions | |
Mutex (Mutex::Type=Auto) | |
~Mutex () | |
void | lock () |
void | unlock () |
bool | trylock () |
Private Member Functions | |
Mutex (const Mutex &) | |
Forbid copy constructor. More... | |
Mutex & | operator= (const Mutex &) |
Forbid assignment. More... | |
Wrapper around a pthreads mutex.
Public interface
This class is a wrapper around a pthreads mutex.
Although the Mutex class has a lock function, class ScopedMutexLock should be used to obtain a lock, because it makes locking exception-safe.
|
inline |
|
private |
Forbid copy constructor.
|
inline |
Definition at line 115 of file Mutex.h.
Referenced by casacore::ScopedMutexLock::ScopedMutexLock().
|
inline |
Definition at line 116 of file Mutex.h.
Referenced by casacore::ScopedMutexLock::~ScopedMutexLock().