GL Studio C++ Runtime API
|
A lock to automagically try to lock and, if applicable, unlock a mutex within its scope. More...
#include <gls_mutex.h>
Public Member Functions | |
ScopedTryLock (Mutex &mut) | |
bool | IsLocked () const |
~ScopedTryLock () | |
Releases the mutex automatically, if needed. | |
A lock to automagically try to lock and, if applicable, unlock a mutex within its scope.
|
inline |
Tries to lock the given mutex.
mut | The mutex to lock. |
|
inline |