29 #ifndef PT_SYSTEM_EVENTSINK_H
30 #define PT_SYSTEM_EVENTSINK_H
32 #include <Pt/System/Api.h>
33 #include <Pt/System/Mutex.h>
60 void commitEvent(
const Event& ev);
64 void queueEvent(
const Event& ev);
73 virtual void onCommitEvent(
const Event& ev) = 0;
77 virtual void onQueueEvent(
const Event& ev) = 0;
81 virtual void onWake() = 0;
95 std::list<EventSource*> _sources;
102 #endif // PT_SYSTEM_EVENTSINK_H
Protects derived classes from being copied.
Definition: NonCopyable.h:54
Recursive mutual exclusion device.
Definition: Mutex.h:187
Receiver for events.
Definition: EventSink.h:45
Base class for all event types.
Definition: Event.h:49
Sends Events to receivers in other threads.
Definition: EventSource.h:54