Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Menge::SimpleLock Class Reference

The definition of a simple mutex-style lock. More...

#include <SimpleLock.h>

Public Member Functions

 SimpleLock ()
virtual ~SimpleLock ()
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.

Detailed Description

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.

The documentation for this class was generated from the following files: