![]() |
OpenSceneGraph
|
This class provides an object-oriented thread mutex interface. More...

Public Types | |
| enum | MutexType { MUTEX_NORMAL, MUTEX_RECURSIVE } |
Public Member Functions | |
| Mutex (MutexType type=MUTEX_NORMAL) | |
| Constructor. More... | |
| virtual | ~Mutex () |
| Destructor. More... | |
| MutexType | getMutexType () const |
| virtual int | lock () |
| Lock the mutex. More... | |
| virtual int | unlock () |
| Unlock the mutex. More... | |
| virtual int | trylock () |
| Test if mutex can be locked. More... | |
Friends | |
| class | Condition |
This class provides an object-oriented thread mutex interface.
| OpenThreads::Mutex::Mutex | ( | MutexType | type = MUTEX_NORMAL | ) |
Constructor.
|
virtual |
Destructor.
|
inline |
|
virtual |
Lock the mutex.
Referenced by OpenThreads::ReadWriteMutex::readLock(), and OpenThreads::ReadWriteMutex::writeLock().
|
virtual |
Test if mutex can be locked.
|
virtual |
Unlock the mutex.
Referenced by OpenThreads::ReadWriteMutex::readUnlock(), and OpenThreads::ReadWriteMutex::writeUnlock().
|
friend |
1.8.13