#include <functional>
#include <folly/portability/Event.h>
Go to the source code of this file.
|
| folly |
| —— Concurrent Priority Queue Implementation ——
|
|
#define FOLLY_LIBEVENT_COMPAT_PLUCK |
( |
|
name | ) |
ev_##name |
#define FOLLY_LIBEVENT_DEF_ACCESSORS |
( |
|
name | ) |
|
Value:inline auto event_ref_##
name(
struct event* ev) \
->decltype(std::ref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(
name))) {
\ return std::ref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(
name)); \
} \
inline
auto event_ref_##
name(
struct event
const* ev) \
->decltype(std::cref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(
name))) {
\ return std::cref(ev->FOLLY_LIBEVENT_COMPAT_PLUCK(
name)); \
} \
Definition at line 30 of file EventUtil.h.