27 #include <sys/types.h>
28 #include <sys/epoll.h>
33 #define EPOLLDEFERRED (1 << 29)
45 virtual void process(
const std::shared_ptr<IPollLoop>& pollLoop, epoll_event event) = 0;
54 virtual bool start(
int priority = -1) = 0;
55 virtual void stop() = 0;
57 virtual std::thread::id threadId()
const = 0;
58 virtual pid_t gettid()
const = 0;
60 virtual bool addSource(
const std::shared_ptr<IPollSource>& source,
int fd, uint32_t events) = 0;
61 virtual bool modSource(
const std::shared_ptr<IPollSource>& source, uint32_t events) = 0;
62 virtual void delSource(
const std::shared_ptr<IPollSource>& source,
int fd = -1) = 0;
63 virtual bool hasSource(
const std::shared_ptr<IPollSource>& source) = 0;
Definition: IPollLoop.h:49
Definition: IPollLoop.h:40