Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXSingleEventThread.h>
Public Types | |
enum | { ID_THREAD_EVENT } |
FOX declaration. More... | |
Public Member Functions | |
MFXSingleEventThread (FXApp *a, MFXInterThreadEventClient *client) | |
constructor | |
long | onThreadEvent (FXObject *, FXSelector, void *) |
long | onThreadSignal (FXObject *, FXSelector, void *) |
virtual FXint | run () |
void | signal () |
void | signal (FXuint seltype) |
virtual | ~MFXSingleEventThread () |
Static Public Member Functions | |
static void | sleep (long ms) |
Protected Member Functions | |
MFXSingleEventThread () | |
FOX need this. | |
Protected Attributes | |
FXApp * | myApp = nullptr |
pointer to APP | |
MFXInterThreadEventClient * | myClient = nullptr |
thread client | |
Private Member Functions | |
MFXSingleEventThread (const MFXSingleEventThread &)=delete | |
invalidate copy constructor | |
MFXSingleEventThread & | operator= (const MFXSingleEventThread &)=delete |
invalidate assignment constructor | |
Private Attributes | |
FXEX::MFXThreadEventHandle | event |
event | |
Definition at line 32 of file MFXSingleEventThread.h.
anonymous enum |
MFXSingleEventThread::MFXSingleEventThread | ( | FXApp * | a, |
MFXInterThreadEventClient * | client | ||
) |
constructor
Definition at line 58 of file MFXSingleEventThread.cpp.
References ID_THREAD_EVENT, PIPE_READ, and UNUSED_PARAMETER.
|
virtual |
Definition at line 75 of file MFXSingleEventThread.cpp.
References event, myApp, PIPE_READ, and PIPE_WRITE.
|
inlineprotected |
FOX need this.
Definition at line 62 of file MFXSingleEventThread.h.
|
privatedelete |
invalidate copy constructor
long MFXSingleEventThread::onThreadEvent | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 128 of file MFXSingleEventThread.cpp.
References MFXInterThreadEventClient::eventOccurred(), and myClient.
Referenced by FXDEFMAP().
long MFXSingleEventThread::onThreadSignal | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 113 of file MFXSingleEventThread.cpp.
References event, PIPE_READ, FXEX::SEL_THREAD, and UNUSED_PARAMETER.
Referenced by FXDEFMAP().
|
privatedelete |
invalidate assignment constructor
|
inlinevirtual |
Reimplemented in GUILoadThread, GUIRunThread, GNELoadThread, GNERunNetgenerate, and GNERunPythonTool.
Definition at line 50 of file MFXSingleEventThread.h.
void MFXSingleEventThread::signal | ( | ) |
Definition at line 89 of file MFXSingleEventThread.cpp.
References event, PIPE_WRITE, FXEX::SEL_THREAD, and UNUSED_PARAMETER.
void MFXSingleEventThread::signal | ( | FXuint | seltype | ) |
Definition at line 101 of file MFXSingleEventThread.cpp.
References event, PIPE_WRITE, and UNUSED_PARAMETER.
|
static |
Definition at line 142 of file MFXSingleEventThread.cpp.
Referenced by GUIRunThread::deleteSim(), GUIApplicationWindow::loadOnStartup(), GUISUMOAbstractView::makeSnapshot(), and GUIRunThread::tryStep().
|
private |
event
Definition at line 72 of file MFXSingleEventThread.h.
Referenced by onThreadSignal(), signal(), signal(), and ~MFXSingleEventThread().
|
protected |
pointer to APP
Definition at line 65 of file MFXSingleEventThread.h.
Referenced by GUIRunThread::run(), and ~MFXSingleEventThread().
|
protected |