![]() |
Om
1.0.0
A universal framework for multimedia simulation
|
A class that locks a mutex upon construction and unlocks it upon destruction. More...
#include <omScopedMutex.h>
Public Member Functions | |
| ScopedMutex (Mutex &newMutex) | |
| Create a new scoped mutex that locks the specified mutex. More... | |
| ~ScopedMutex () | |
| Unlock the scoped mutex's mutex. More... | |
A class that locks a mutex upon construction and unlocks it upon destruction.
This class can be used to ensure that a mutex that is locked at the beginning of a function will be automatically unlocked for each return path.
|
inline |
Create a new scoped mutex that locks the specified mutex.
|
inline |
Unlock the scoped mutex's mutex.
1.8.11