A guard class that can handle locking and unlocking of multiple mutexes. More...
#include <Radiant/Mutex.hpp>
Public Member Functions | |
| GuardArray (int reserve=4) | |
| Construct guard array. More... | |
| void | lock (Mutex *mutex) |
| Locks and adds one new mutex to the array. More... | |
| ~GuardArray () | |
| Unlocks all locked mutexes. | |
A guard class that can handle locking and unlocking of multiple mutexes.
|
inline |
Construct guard array.
| reserve | pre-allocates memory for at least reserve mutexes |
|
inline |
Locks and adds one new mutex to the array.
| mutex | mutex to guard |