SUMO - Simulation of Urban MObility
MFXMutex Class Reference

#include <MFXMutex.h>

Inheritance diagram for MFXMutex:
Inheritance graph
Collaboration diagram for MFXMutex:
Collaboration graph

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 &)
 
MFXMutexoperator= (const MFXMutex &)
 

Private Attributes

FXThreadMutex mutexHandle
 

Detailed Description

Recursive mutual exclusion object. Unlocks on destruction

Definition at line 56 of file MFXMutex.h.

Constructor & Destructor Documentation

MFXMutex::MFXMutex ( )

create me a mutex :-)

Definition at line 50 of file MFXMutex.cpp.

References mutexHandle.

MFXMutex::~MFXMutex ( )
virtual

dtor

Definition at line 72 of file MFXMutex.cpp.

References lock_, and mutexHandle.

MFXMutex::MFXMutex ( const MFXMutex )
private

Member Function Documentation

MFXMutex& MFXMutex::operator= ( const MFXMutex )
private
void MFXMutex::unlock ( )
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(), GUIDialog_Breakpoints::encode2TXT(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIRunThread::init(), GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), GUIRunThread::makeStep(), GUIDialog_Breakpoints::onCmdClear(), GUIDialog_Breakpoints::onCmdEditTable(), GUIDialog_ViewSettings::onCmdEditTable(), GUIDialog_Breakpoints::onCmdLoad(), MFXEventQue< GUIEvent * >::pop(), GUIVehicleControl::releaseVehicles(), GUILane::releaseVehicles(), GUIMainWindow::removeChild(), GUIRunThread::run(), MFXEventQue< GUIEvent * >::size(), MFXEventQue< GUIEvent * >::top(), GUINet::unlock(), TrackerValueDesc::unlockValues(), GUIMainWindow::updateChildren(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::~GLObjectValuePassConnector(), GUIBaseVehicle::~GUIBaseVehicle(), GUIEdge::~GUIEdge(), GUILane::~GUILane(), GUINet::~GUINet(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow(), GUIVehicleControl::~GUIVehicleControl(), and TrackerValueDesc::~TrackerValueDesc().

Field Documentation

FXuint MFXMutex::lock_
protected

Definition at line 75 of file MFXMutex.h.

Referenced by lock(), locked(), unlock(), and ~MFXMutex().

FXThreadMutex MFXMutex::mutexHandle
private

Definition at line 78 of file MFXMutex.h.

Referenced by lock(), MFXMutex(), unlock(), and ~MFXMutex().


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