41 #ifndef INCLUDED_DISTI_MUTEX_H
42 #define INCLUDED_DISTI_MUTEX_H
61 virtual DISTI_EXPORT
~Mutex();
64 DISTI_EXPORT
void Lock();
71 DISTI_EXPORT
void Unlock();
100 _locked( _mut.TryLock() )
125 Mutex(
const Mutex& );
126 void operator=(
const Mutex& );
bool IsLocked() const
Returns whether the lock succeeded.
Definition: gls_mutex.h:104
void Unlock()
Releases the mutex, allowing another process to lock it.
A file for all GL Studio files to include.
ScopedLock(Mutex &mut)
Lock the given mutex (blocks on failure to acquire)
Definition: gls_mutex.h:78
Definition: gls_mutex.h:53
~ScopedTryLock()
Releases the mutex automatically, if needed.
Definition: gls_mutex.h:107
~ScopedLock()
Releases the mutex automatically.
Definition: gls_mutex.h:85
virtual ~Mutex()
Destructor.
A lock to automagically try to lock and, if applicable, unlock a mutex within its scope...
Definition: gls_mutex.h:94
ScopedTryLock(Mutex &mut)
Tries to lock the given mutex.
Definition: gls_mutex.h:98
A lock class to automagically un/lock a mutex within its scope.
Definition: gls_mutex.h:74
Definition: bmpimage.h:46
void Lock()
Blocks to acquire the mutex.