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
Future< T > run_in_event_loop(const lambda::function< Future< T >()> &f)
Definition: libev.hpp:72
Definition: libevent.hpp:37
thread_local bool * _in_event_loop_
Definition: libevent.hpp:28
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
EventLoopLogicFlow
Definition: libevent.hpp:35