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 &)
 
MFXMutex & operator= (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 48 of file MFXMutex.cpp.

References mutexHandle.

MFXMutex::~MFXMutex ( )
virtual

dtor

Definition at line 70 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 94 of file MFXMutex.cpp.

References lock_, and mutexHandle.

Referenced by MFXEventQue< GUIEvent * >::add(), GUIMainWindow::addChild(), GUISUMOAbstractView::addSnapshot(), GUITLLogicPhasesTrackerWindow::addValue(), GUISUMOAbstractView::checkSnapshots(), 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(), 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().

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: