2 #ifndef EventLoopServer_H_ 3 #define EventLoopServer_H_ 24 bool evIsActive()
const noexcept;
29 virtual void evfinish() {}
33 virtual void evprepare() {}
40 bool async_evrun(
size_t waitRunningTimeout_msec = 60000 );
50 ev::dynamic_loop loop;
54 void onStop() noexcept;
55 void defaultLoop() noexcept;
56 bool waitDefaultLoopRunning(
size_t waitTimeout_msec );
57 void onLoopOK( ev::timer& t,
int revents ) noexcept;
59 std::atomic_bool cancelled = {
false };
60 std::atomic_bool isactive = {
false };
61 std::timed_mutex run_mutex;
64 std::unique_ptr<std::thread> thr;
66 std::mutex looprunOK_mutex;
67 std::condition_variable looprunOK_event;
68 std::atomic_bool isrunning = {
false };
74 #endif // EventLoopServer_H_ Definition: CallbackTimer.h:29
void evstop()
Definition: EventLoopServer.cc:83
bool async_evrun(size_t waitRunningTimeout_msec=60000)
Definition: EventLoopServer.cc:41
bool evrun()
Definition: EventLoopServer.cc:26
The EventLoopServer class Реализация общей части всех процессов использующих libev. Содержит свой (динамический) eventloop;.
Definition: EventLoopServer.h:17