25 #if LIBEVENT_VERSION_NUMBER <= 0x02010101 26 #define FOLLY_LIBEVENT_COMPAT_PLUCK(name) ev_##name 28 #define FOLLY_LIBEVENT_COMPAT_PLUCK(name) ev_evcallback.evcb_##name 30 #define FOLLY_LIBEVENT_DEF_ACCESSORS(name) \ 31 inline auto event_ref_##name(struct event* ev) \ 32 ->decltype(std::ref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(name))) { \ 33 return std::ref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(name)); \ 35 inline auto event_ref_##name(struct event const* ev) \ 36 ->decltype(std::cref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(name))) { \ 37 return std::cref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(name)); \ 43 #undef FOLLY_LIBEVENT_COMPAT_PLUCK 44 #undef FOLLY_LIBEVENT_DEF_ACCESSORS 55 (EVLIST_INSERTED | EVLIST_ACTIVE | EVLIST_TIMEOUT | EVLIST_SIGNAL)
—— Concurrent Priority Queue Implementation ——
auto event_ref_flags(struct event *ev) -> decltype(std::ref(ev->ev_flags))
static bool isEventRegistered(const struct event *ev)
#define FOLLY_LIBEVENT_DEF_ACCESSORS(name)