21 #include <boost/noncopyable.hpp> 22 #include <glog/logging.h>
bool registerImpl(uint16_t events, bool internal)
static void libeventCallback(libevent_fd_t fd, short events, void *arg)
void initHandler(EventBase *eventBase, int fd)
void setEventBase(EventBase *eventBase)
—— Concurrent Priority Queue Implementation ——
void attachEventBase(EventBase *eventBase)
requires E e noexcept(noexcept(s.error(std::move(e))))
virtual void handlerReady(uint16_t events) noexcept=0
uint16_t getRegisteredEvents() const
static bool isEventRegistered(const struct event *ev)
void changeHandlerFD(int fd)
EventHandler(EventBase *eventBase, int fd)
void ensureNotRegistered(const char *fn)
bool registerInternalHandler(uint16_t events)
bool registerHandler(uint16_t events)
static NetworkSocket fromFd(int fd)
bool isHandlerRegistered() const