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 55 of file MFXMutex.h.

Constructor & Destructor Documentation

◆ MFXMutex() [1/2]

MFXMutex::MFXMutex ( )

create me a mutex :-)

Definition at line 47 of file MFXMutex.cpp.

References mutexHandle.

◆ ~MFXMutex()

MFXMutex::~MFXMutex ( )
virtual

dtor

Definition at line 69 of file MFXMutex.cpp.

References lock_, and mutexHandle.

◆ MFXMutex() [2/2]

MFXMutex::MFXMutex ( const MFXMutex )
private

Member Function Documentation

◆ lock()

◆ locked()

◆ operator=()

MFXMutex& MFXMutex::operator= ( const MFXMutex )
private

◆ unlock()

void MFXMutex::unlock ( )
virtual

release mutex lock

Implements AbstractMutex.

Definition at line 93 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(), 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().

Field Documentation

◆ lock_

FXuint MFXMutex::lock_
protected

Definition at line 74 of file MFXMutex.h.

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

◆ mutexHandle

FXThreadMutex MFXMutex::mutexHandle
private

Definition at line 77 of file MFXMutex.h.

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


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