|
GL Studio C++ Runtime API
|
A lock class to automagically un/lock a mutex within its scope. More...
#include <gls_mutex.h>
Public Member Functions | |
| ScopedLock (Mutex &mut) | |
| ~ScopedLock () | |
| Releases the mutex automatically. | |
A lock class to automagically un/lock a mutex within its scope.
|
inline |
Lock the given mutex (blocks on failure to acquire)
| mut | The mutex to lock. |