fesa-core
5.0.1
|
#include <Mutex.h>
Public Member Functions | |
void | lock () const |
void | unlock () const |
Protected Member Functions | |
Mutex (bool init) | |
void | checkAlignment () const |
Object which allows mutual exclusion between threads. Internally, wraps a pthread_mutex_t.
|
protected |
Constructor which can skip initialization of mutex_.
init | the mutex is initialized only if this is true. |
|
protected |
Checks that mutex_ is properly aligned.
FesaException | if mutex_ is not properly aligned. |
void fesa::Mutex::lock | ( | ) | const |
Locks the mutex. Only one thread can hold a lock on the mutex at a time.
void fesa::Mutex::unlock | ( | ) | const |
the mutex.