|
Loki
0.1.7
|
#include <LevelMutex.h>


Public Member Functions | |
| SleepLevelMutex (unsigned int level) | |
| virtual | ~SleepLevelMutex (void) |
| Destructs the mutex. | |
| virtual MutexErrors::Type | Lock (void) volatile |
Implements a sleeping loop to wait for the mutex to unlock.
| Loki::SleepLevelMutex::SleepLevelMutex | ( | unsigned int | level | ) | [explicit] |
Constructs a levelized mutex that puts threads to sleep while they wait for another thread to unlock the mutex.
| level | Level of this mutex. |
| MutexErrors::Type Loki::SleepLevelMutex::Lock | ( | void | ) | volatile [virtual] |
Attempts to lock a mutex, and if it fails, then sleeps for a while before attempting again.
Reimplemented from Loki::SpinLevelMutex.