![]() |
SUMO - Simulation of Urban MObility
|
#include <MFXMutex.h>
Public Member Functions | |
void | lock () |
lock mutex More... | |
FXbool | locked () |
MFXMutex () | |
create me a mutex :-) More... | |
void | unlock () |
release mutex lock More... | |
virtual | ~MFXMutex () |
dtor More... | |
Protected Attributes | |
FXuint | lock_ |
Private Member Functions | |
MFXMutex (const MFXMutex &) | |
MFXMutex & | operator= (const MFXMutex &) |
Private Attributes | |
FXThreadMutex | mutexHandle |
Recursive mutual exclusion object. Unlocks on destruction
Definition at line 56 of file MFXMutex.h.
MFXMutex::MFXMutex | ( | ) |
|
virtual |
|
private |
|
virtual |
lock mutex
Implements AbstractMutex.
Definition at line 86 of file MFXMutex.cpp.
References INFINITE, lock_, and mutexHandle.
Referenced by MFXEventQue< GUIEvent * >::add(), GUIMainWindow::addChild(), GUITLLogicPhasesTrackerWindow::addValue(), GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIRunThread::deleteSim(), GUIVehicle::drawBestLanes(), GUISUMOAbstractView::drawDecals(), GUIEdge::drawGL(), GUITLLogicPhasesTrackerWindow::drawValues(), MFXEventQue< GUIEvent * >::empty(), TrackerValueDesc::getAggregatedValues(), TrackerValueDesc::getValues(), GUILane::getVehiclesSecure(), GUIRunThread::init(), GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), GUIEdge::lock(), GUINet::lock(), GUIRunThread::makeStep(), GUIDialog_ViewSettings::onCmdEditTable(), MFXEventQue< GUIEvent * >::pop(), GUIMainWindow::removeChild(), GUIMEVehicleControl::secureVehicles(), GUIVehicleControl::secureVehicles(), MFXEventQue< GUIEvent * >::size(), MFXEventQue< GUIEvent * >::top(), GUIMainWindow::updateChildren(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::~GLObjectValuePassConnector(), GUIBaseVehicle::~GUIBaseVehicle(), and GUIParameterTableWindow::~GUIParameterTableWindow().
|
inline |
Definition at line 70 of file MFXMutex.h.
References lock_.
Referenced by GUIEdge::~GUIEdge(), GUILane::~GUILane(), GUIMEVehicleControl::~GUIMEVehicleControl(), GUINet::~GUINet(), GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow(), GUIVehicleControl::~GUIVehicleControl(), and TrackerValueDesc::~TrackerValueDesc().
|
virtual |
release mutex lock
Implements AbstractMutex.
Definition at line 96 of file MFXMutex.cpp.
References lock_, and mutexHandle.
Referenced by MFXEventQue< GUIEvent * >::add(), GUIMainWindow::addChild(), GUITLLogicPhasesTrackerWindow::addValue(), GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIRunThread::deleteSim(), GUIVehicle::drawBestLanes(), GUISUMOAbstractView::drawDecals(), GUIEdge::drawGL(), GUITLLogicPhasesTrackerWindow::drawValues(), MFXEventQue< GUIEvent * >::empty(), GUIRunThread::init(), GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), GUIRunThread::makeStep(), GUIDialog_ViewSettings::onCmdEditTable(), MFXEventQue< GUIEvent * >::pop(), GUIMEVehicleControl::releaseVehicles(), GUIVehicleControl::releaseVehicles(), GUILane::releaseVehicles(), GUIMainWindow::removeChild(), MFXEventQue< GUIEvent * >::size(), MFXEventQue< GUIEvent * >::top(), GUIEdge::unlock(), GUINet::unlock(), TrackerValueDesc::unlockValues(), GUIMainWindow::updateChildren(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::~GLObjectValuePassConnector(), GUIBaseVehicle::~GUIBaseVehicle(), GUIEdge::~GUIEdge(), GUILane::~GUILane(), GUIMEVehicleControl::~GUIMEVehicleControl(), GUINet::~GUINet(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow(), GUIVehicleControl::~GUIVehicleControl(), and TrackerValueDesc::~TrackerValueDesc().
|
protected |
Definition at line 75 of file MFXMutex.h.
Referenced by lock(), locked(), unlock(), and ~MFXMutex().
|
private |
Definition at line 78 of file MFXMutex.h.
Referenced by lock(), MFXMutex(), unlock(), and ~MFXMutex().