<dmsdk/dlib/mutex.h>
API for platform independent mutex synchronization primitive.
macro for scope lifetime Mutex locking
Will lock a Mutex and automatically unlock it at the end of the scope.
mutex -
dmMutex::HMutex Mutex handle to lock.
delete Mutex.
Deletes a HMutex.
mutex -
dmMutex::HMutex Mutex handle to delete.
HMutex type definition
typedef struct Mutex* HMutex;
lock Mutex.
Lock a HMutex, will block until mutex is unlocked if already locked elsewhere.
mutex -
dmMutex::HMutex Mutex handle to lock.
create Mutex
Creates a new HMutex.
mutex -
dmMutex::HMutex A new Mutex handle.
non-blocking lock of Mutex.
Tries to lock a HMutex, if mutex is already locked it will return false and continue without locking the mutex.
mutex -
dmMutex::HMutex Mutex handle to lock.
result -
bool True if mutex was successfully locked, false otherwise.
unlock Mutex.
Unlock a HMutex.
mutex -
dmMutex::HMutex Mutex handle to unlock.