Eidolon
|
Simple mutex type allowing locking and attempted locking with timeout. More...
#include <RenderTypes.h>
Classes | |
class | Locker |
Public Member Functions | |
Mutex () | |
~Mutex () | |
bool | lock (real timeout=0.0) |
void | release () |
Releases the mutex lock. More... | |
Private Attributes | |
MutexType | _mutex |
Simple mutex type allowing locking and attempted locking with timeout.
|
inline |
|
inline |
|
inline |
Acquire the mutex lock. If `timeout' is >0 try for that length of time in seconds to acquire the lock. Returns true if `timeout'<=0 or the lock was acquired in the time given, false if the time elapsed without getting the lock.
|
inline |
Releases the mutex lock.
|
private |