SUMO - Simulation of Urban MObility
|
An abstract class for encapsulating mutex implementations. More...
#include <AbstractMutex.h>
Public Member Functions | |
AbstractMutex () | |
Constructor. | |
virtual void | lock ()=0 |
Locks the mutex. | |
virtual void | unlock ()=0 |
Unlocks the mutex. | |
virtual | ~AbstractMutex () |
Destructor. |
An abstract class for encapsulating mutex implementations.
This class defines access to a mutex. The implementation may differ. Within gui-applications, FXMutexes may be used while this is improper for command-line applications. Normally, they do not need mutexes unless a synchronized communication with an external application is established. In these cases, a further class should be implemented.
Definition at line 48 of file AbstractMutex.h.
AbstractMutex::AbstractMutex | ( | ) | [inline] |
Constructor.
Definition at line 51 of file AbstractMutex.h.
virtual AbstractMutex::~AbstractMutex | ( | ) | [inline, virtual] |
Destructor.
Definition at line 55 of file AbstractMutex.h.
virtual void AbstractMutex::lock | ( | ) | [pure virtual] |
Locks the mutex.
Implemented in MFXMutex.
Referenced by MsgHandler::addRetriever(), MsgHandler::beginProcessMsg(), MsgHandler::cleanupOnEnd(), MsgHandler::clear(), MsgHandler::endProcessMsg(), MsgHandler::inform(), and MsgHandler::removeRetriever().
virtual void AbstractMutex::unlock | ( | ) | [pure virtual] |
Unlocks the mutex.
Implemented in MFXMutex.
Referenced by MsgHandler::addRetriever(), MsgHandler::beginProcessMsg(), MsgHandler::cleanupOnEnd(), MsgHandler::clear(), MsgHandler::endProcessMsg(), MsgHandler::inform(), and MsgHandler::removeRetriever().