Clipper
|
Mutex class: used for locking and unlocking shared resources. More...
#include <clipper_thread.h>
Public Member Functions | |
Mutex () | |
constructor: create the mutex | |
~Mutex () | |
destructor: destroy the mutex | |
void | lock () |
lock the mutex | |
void | unlock () |
unlock the mutex | |
Protected Attributes | |
CLIPPER_MUTEX_TYPE | mutex |
Mutex class: used for locking and unlocking shared resources.
Create a mutex for any sharted resource, i.e. non-stack object used by a multi-threaded program. The lock and unlock methods lock that resource. Recursive locks are not allowed.