13 #ifndef __LIBEVENT_HPP__ 14 #define __LIBEVENT_HPP__ 16 #include <event2/event.h> 23 extern event_base*
base;
31 #define __in_event_loop__ *(_in_event_loop_ == nullptr ? \ 32 _in_event_loop_ = new bool(false) : _in_event_loop_) 43 const lambda::function<
void()>&
f,
48 #endif // __LIBEVENT_HPP__ Definition: libevent.hpp:38
F && f
Definition: defer.hpp:270
Definition: libevent.hpp:37
Future< T > run_in_event_loop(const LoopIndex loop_index, const lambda::function< Future< T >(struct ev_loop *)> &f)
Definition: libev.hpp:83
thread_local struct ev_loop * _in_event_loop_
Definition: libevent.hpp:28
Definition: executor.hpp:48
EventLoopLogicFlow
Definition: libevent.hpp:35