29 #ifndef PT_SELECTABLE_H
30 #define PT_SELECTABLE_H
32 #include <Pt/System/Api.h>
33 #include <Pt/NonCopyable.h>
46 friend class SelectableList;
73 virtual void onAttach(
EventLoop& loop) = 0;
76 virtual void onDetach(
EventLoop& loop) = 0;
79 virtual void onCancel() = 0;
82 virtual bool onRun() = 0;
94 #endif // PT_SELECTABLE_H
Protects derived classes from being copied.
Definition: NonCopyable.h:54
Dispatches operations through an event loop.
Definition: Selectable.h:44
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:72