![]() |
SUMO - Simulation of Urban MObility
|
#include <MFXMutex.h>
Public Member Functions | |
void | lock () |
lock mutex More... | |
FXuint | lockCount () |
return current lock value More... | |
FXbool | locked () |
check if mutex is locked More... | |
MFXMutex () | |
constructor More... | |
void | unlock () |
release mutex lock More... | |
virtual | ~MFXMutex () |
destructor More... | |
Protected Attributes | |
FXuint | lock_ |
lock count More... | |
Private Member Functions | |
MFXMutex (const MFXMutex &)=delete | |
MFXMutex & | operator= (const MFXMutex &)=delete |
Private Attributes | |
FXThreadMutex | mutexHandle |
mutex handler More... | |
Recursive mutual exclusion object. Unlocks on destruction
Definition at line 48 of file MFXMutex.h.
MFXMutex::MFXMutex | ( | ) |
|
virtual |
|
privatedelete |
|
virtual |
lock mutex
Implements AbstractMutex.
Definition at line 77 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(), GUITLLogicPhasesTrackerWindow::drawValues(), MFXEventQue< GUIEvent *>::empty(), TrackerValueDesc::getAggregatedValues(), TrackerValueDesc::getValues(), GUILane::getVehiclesSecure(), GUIParameterTableWindow::GUIParameterTableWindow(), 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(), GUIParameterTableWindow::~GUIParameterTableWindow(), and GUIPerson::~GUIPerson().
|
inline |
return current lock value
Definition at line 68 of file MFXMutex.h.
References lock_.
Referenced by SUMORTree::addAdditionalGLObject(), SUMORTree::removeAdditionalGLObject(), and SUMORTree::~SUMORTree().
|
inline |
check if mutex is locked
Definition at line 63 of file MFXMutex.h.
References lock_.
Referenced by SUMORTree::addAdditionalGLObject(), SUMORTree::removeAdditionalGLObject(), GUIEdge::~GUIEdge(), GUILane::~GUILane(), GUIMEVehicleControl::~GUIMEVehicleControl(), GUINet::~GUINet(), GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow(), GUIVehicleControl::~GUIVehicleControl(), SUMORTree::~SUMORTree(), and TrackerValueDesc::~TrackerValueDesc().
|
virtual |
release mutex lock
Implements AbstractMutex.
Definition at line 87 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(), GUITLLogicPhasesTrackerWindow::drawValues(), MFXEventQue< GUIEvent *>::empty(), GUIParameterTableWindow::GUIParameterTableWindow(), GUIRunThread::init(), GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), GUIRunThread::makeStep(), GUIDialog_ViewSettings::onCmdEditTable(), MFXEventQue< GUIEvent *>::pop(), GUIMEVehicleControl::releaseVehicles(), GUILane::releaseVehicles(), GUIVehicleControl::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(), GUIPerson::~GUIPerson(), GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow(), GUIVehicleControl::~GUIVehicleControl(), and TrackerValueDesc::~TrackerValueDesc().
|
protected |
lock count
Definition at line 74 of file MFXMutex.h.
Referenced by lock(), lockCount(), locked(), unlock(), and ~MFXMutex().
|
private |
mutex handler
Definition at line 78 of file MFXMutex.h.
Referenced by lock(), MFXMutex(), unlock(), and ~MFXMutex().