12 #include "FXReactor.h" 58 virtual FXbool init();
61 virtual FXbool addHandle(
HandleCallback cb,FXInputHandle hnd,FXuint mode=InputRead,
void* ptr=
nullptr);
64 virtual FXbool addHandle(FXInputHandle hnd,FXuint mode=InputRead);
67 virtual FXbool remHandle(FXInputHandle hnd);
70 virtual FXbool hasHandle(FXInputHandle hnd)
const;
74 virtual FXbool dispatchHandle(FXInputHandle hnd,FXuint mode,FXuint flags);
77 virtual FXbool addSignal(
SignalCallback cb,FXint sig,
void* ptr=
nullptr,FXbool async=
false);
80 virtual FXbool addSignal(FXint sig,FXbool async=
false);
83 virtual FXbool remSignal(FXint sig);
87 virtual FXbool dispatchSignal(FXint sig);
92 virtual void* addTimeout(
TimeoutCallback cb,FXTime due,
void* ptr=
nullptr);
97 virtual void* addInterval(
TimeoutCallback cb,FXTime interval,
void* ptr=
nullptr);
112 virtual FXTime nextTimeout();
116 virtual FXbool dispatchTimeout(FXTime due);
121 virtual void* addIdle(
IdleCallback cb,
void* ptr=
nullptr);
132 virtual FXbool dispatchIdle();
135 virtual FXbool exit();
FXCallback< FXbool(FXDispatcher *, FXint, void *)> SignalCallback
Signal callback when signal has been fired.
Definition: FXDispatcher.h:44
FXCallback< FXbool(FXDispatcher *, void *)> IdleCallback
Idle callback when dispatcher is about to block.
Definition: FXDispatcher.h:50
FXCallback< FXbool(FXDispatcher *, FXInputHandle, FXuint, void *)> HandleCallback
I/O Handle callback when a handle is raised.
Definition: FXDispatcher.h:41
Definition: FXCallback.h:30
A hash table for mapping pointers to pointers.
Definition: FXHash.h:33
A FXDispatcher watches a number of devices and signals for activity and dispatches to the proper func...
Definition: FXDispatcher.h:22
Definition: FX4Splitter.h:28
FXReactor implements the reactor pattern.
Definition: FXReactor.h:58
FXCallback< FXbool(FXDispatcher *, FXTime, void *)> TimeoutCallback
Timer callback when timer expired.
Definition: FXDispatcher.h:47