38 #include "final/eventloop/monitor.h" 39 #include "final/util/fstring.h" 55 auto getClassName()
const ->
FString;
63 static constexpr nfds_t MAX_MONITORS{50};
64 static constexpr
int WAIT_INDEFINITELY{-1};
67 void nonPollWaiting()
const;
68 auto processNextEvents() -> bool;
69 void dispatcher (
int, nfds_t);
75 bool monitors_changed{
false};
76 std::list<Monitor*> monitors{};
77 std::array<struct pollfd, MAX_MONITORS> fds{};
78 std::array<Monitor*, MAX_MONITORS> lookup_table{};
86 inline auto EventLoop::getClassName()
const ->
FString 87 {
return "EventLoop"; }
90 inline void EventLoop::leave()
Definition: eventloop.h:48
Definition: class_template.cpp:25