A synchronization primitive for multithreaded applications. Multiple Get() method calls from one process will not lead to deadlock, in other words the mutex is reentrant. More...
#include <Mutex.h>
Classes | |
class | Scoped_Lock |
Mutex is acquired on Scoped_Lock construction and released on destruction. More... | |
Public Member Functions | |
Mutex () | |
Constructor, creates unnamed Mutex object. | |
unsigned int | Get (unsigned int timeout=INFINITE) |
Gets the mutex. If it is not free then waits (blocking) for specified timeout and either gets the mutex or returns an error. If no error was encountered returns 0. Please note that timeout value has no effect now because it is not implemented. | |
unsigned int | Release () |
Releases the mutex allowing other threads to access the mutex-protected resource. |
A synchronization primitive for multithreaded applications. Multiple Get() method calls from one process will not lead to deadlock, in other words the mutex is reentrant.