61 bool evIsActive()
const noexcept;
78 inline const ev::loop_ref evloop()
noexcept
90 void onStop( ev::async& w,
int revents )
noexcept;
91 void onPrepare( ev::async& w,
int revents )
noexcept;
92 void defaultLoop()
noexcept;
93 bool runDefaultLoop(
size_t waitTimeout_msec );
94 bool activateWatcher(
EvWatcher* w,
size_t waitTimeout_msec );
95 void onLoopOK( ev::timer& t,
int revents )
noexcept;
97 std::atomic_bool cancelled = {
false };
98 std::atomic_bool isrunning = {
false };
100 ev::dynamic_loop loop;
102 std::unique_ptr<std::thread> thr;
103 std::mutex thr_mutex;
105 std::mutex term_mutex;
106 std::condition_variable term_event;
107 std::atomic_bool term_notify = {
false };
109 std::mutex wlist_mutex;
110 std::vector<EvWatcher*> wlist;
116 std::condition_variable prep_event;
117 std::mutex prep_mutex;
118 std::atomic_bool prep_notify = {
false };
121 std::mutex looprunOK_mutex;
122 std::condition_variable looprunOK_event;
123 ev::timer evruntimer;