cgma
|
Public Member Functions | |
RealMutex () | |
~RealMutex () | |
virtual void | lock () |
virtual void | unlock () |
Protected Attributes | |
pthread_mutex_t | mMutex |
Definition at line 38 of file CubitConcurrentApi.cpp.
RealMutex::RealMutex | ( | ) | [inline] |
Definition at line 41 of file CubitConcurrentApi.cpp.
{ pthread_mutex_init(&mMutex, NULL); }
RealMutex::~RealMutex | ( | ) | [inline] |
Definition at line 45 of file CubitConcurrentApi.cpp.
{ pthread_mutex_destroy(&mMutex); }
virtual void RealMutex::lock | ( | ) | [inline, virtual] |
Implements CubitConcurrent::Mutex.
Definition at line 49 of file CubitConcurrentApi.cpp.
{ pthread_mutex_lock(&mMutex); }
virtual void RealMutex::unlock | ( | ) | [inline, virtual] |
Implements CubitConcurrent::Mutex.
Definition at line 53 of file CubitConcurrentApi.cpp.
{ pthread_mutex_unlock(&mMutex); }
pthread_mutex_t RealMutex::mMutex [protected] |
Definition at line 58 of file CubitConcurrentApi.cpp.