54FXIMPLEMENT(
MFXSingleEventThread, FXObject, MFXSingleEventThreadMap, ARRAYNUMBER(MFXSingleEventThreadMap))
59 : FXObject(), myClient(client) {
63 FXint res = pipe(event);
68 event = CreateEvent(
nullptr, FALSE, FALSE,
nullptr);
69 FXASSERT(event != NULL);
122 handle(
this, sel,
nullptr);
143 std::this_thread::sleep_for(std::chrono::milliseconds(ms));
@ ID_THREAD_EVENT
ID for message passing between threads.
#define UNUSED_PARAMETER(x)
virtual void eventOccurred()=0
long onThreadEvent(FXObject *, FXSelector, void *)
long onThreadSignal(FXObject *, FXSelector, void *)
FXEX::MFXThreadEventHandle event
event
virtual ~MFXSingleEventThread()
MFXInterThreadEventClient * myClient
thread client
static void sleep(long ms)
FXApp * myApp
pointer to APP
FXInputHandle * MFXThreadEventHandle
FXDEFMAP(MFXBaseObject) MFXBaseObjectMap[]