This class provides an object-oriented thread mutex interface.
More...
|
enum | MutexType { MUTEX_NORMAL,
MUTEX_RECURSIVE
} |
|
|
| Mutex (MutexType type=MUTEX_NORMAL) |
| Constructor.
|
|
virtual | ~Mutex () |
| Destructor.
|
|
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...
|
|
This class provides an object-oriented thread mutex interface.
◆ lock()
virtual int OpenThreads::Mutex::lock |
( |
| ) |
|
|
virtual |
Lock the mutex.
- Returns
- 0 if normal, -1 if errno set, errno code otherwise.
◆ trylock()
virtual int OpenThreads::Mutex::trylock |
( |
| ) |
|
|
virtual |
Test if mutex can be locked.
- Returns
- 0 if normal, -1 if errno set, errno code otherwise.
◆ unlock()
virtual int OpenThreads::Mutex::unlock |
( |
| ) |
|
|
virtual |
Unlock the mutex.
- Returns
- 0 if normal, -1 if errno set, errno code otherwise.
The documentation for this class was generated from the following file:
- /home/karlu20/private/installs/OpenSceneGraph/include/OpenThreads/Mutex