ParCompMark::Mutex Class Reference
#include <PCMMutex.h>
Inheritance diagram for ParCompMark::Mutex:
Detailed Description
Mutual exception lock.
Definition at line 54 of file PCMMutex.h.
Public Member Functions | |
Constructors & destructor | |
Mutex () | |
Default constructor. | |
virtual | ~Mutex () |
The destructor. | |
Methods | |
virtual void | lock () |
Lock the mutex. | |
virtual bool | trylock () |
Try locking the mutex. | |
virtual void | unlock () |
Unlock the mutex. | |
Protected Attributes | |
Variables | |
pthread_mutex_t | mMutex |
Guard mutex. |
Constructor & Destructor Documentation
ParCompMark::Mutex::Mutex | ( | ) | [inline] |
ParCompMark::Mutex::~Mutex | ( | ) | [inline, virtual] |
Member Function Documentation
void ParCompMark::Mutex::lock | ( | ) | [inline, virtual] |
Lock the mutex.
Implements ParCompMark::Lock.
Definition at line 197 of file PCMMutex.h.
Referenced by ParCompMark::SqVM::activate(), ParCompMark::XDisplay::errorHandler(), ParCompMarkTest::TestMutex::test_lock(), ParCompMarkTest::TestMutex::test_trylock(), and ParCompMarkTest::TestMutex::test_unlock().
bool ParCompMark::Mutex::trylock | ( | ) | [inline, virtual] |
Try locking the mutex.
- Returns:
- True if the locking was successful.
Implements ParCompMark::Lock.
Definition at line 207 of file PCMMutex.h.
void ParCompMark::Mutex::unlock | ( | ) | [inline, virtual] |
Unlock the mutex.
Implements ParCompMark::Lock.
Definition at line 215 of file PCMMutex.h.
Referenced by ParCompMark::SqVM::deactivate(), ParCompMark::XDisplay::errorHandler(), and ParCompMarkTest::TestMutex::test_unlock().
Member Data Documentation
pthread_mutex_t ParCompMark::Mutex::mMutex [protected] |
The documentation for this class was generated from the following file: