GL Studio API
Public Member Functions | List of all members
Mutex::ScopedTryLock Class Reference

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)
 Tries to lock the given mutex.
 
bool IsLocked () const
 Returns whether the lock succeeded.
 
 ~ScopedTryLock ()
 Releases the mutex automatically, if needed.
 

Detailed Description

A lock to automagically try to lock and, if applicable, unlock a mutex within its scope.


The documentation for this class was generated from the following file: