#include <cxxtools/mutex.h>

Public Member Functions | |
| Mutex () | |
| Default constructor. | |
| ~Mutex () | |
| Destructor. | |
| void | lock () |
| Lock the mutex. | |
| bool | tryLock () |
| void | unlock () |
| Unlocks the mutex. | |
| bool | unlockNoThrow () |
| Unlocks the mutex. | |
| MutexImpl & | impl () |
| ~Mutex | ( | ) |
The destructor destroys the mutex. The mutex must be in unlocked state when the destructor is called.
| void lock | ( | ) |
If the mutex is currently locked by another thread, the calling thread suspends until no other thread holds a lock on it. If the mutex is already locked by the calling thread a deadlock occurs.
| bool unlockNoThrow | ( | ) |
This method does not throw an exception if unlocking the mutex fails but simply returns false.
Referenced by MutexLock::~MutexLock().