Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The definition of a simple mutex-style lock. More...
#include <SimpleLock.h>
Public Member Functions | |
SimpleLock () | |
Constructor. | |
virtual | ~SimpleLock () |
Destructor. | |
void | lock () const |
Requests access to the mutex. When this function returns, the lock will be uniquely acquired by the calling thread. The calling thread must call release otherwise deadlocks may occur. | |
void | release () const |
Releases the acquired lock. This must only be called by the thread which had previously successfully called lock. | |
The definition of a simple mutex-style lock.
This lock provides a simple mutex to guarantee thread-safe concurrency. Use of this lock guarantees that only one thread at a time can acquire the lock.