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;