Lines Matching refs:EventNotifier
29 EventNotifierPtr EventNotifier::Create(unsigned int initValue, unsigned int mask)
31 return std::make_shared<EventNotifier>(initValue, mask);
34 EventNotifierPtr EventNotifier::CreateWithFd(int fd)
36 return std::make_shared<EventNotifier>(fd);
39 EventNotifier::EventNotifier(unsigned int initValue, unsigned int mask) : fd_(-1), flags_(O_CLOEXEC)
49 PROFILER_LOG_DEBUG(LOG_CORE, "EventNotifier create eventfd %d done!", fd_);
52 EventNotifier::EventNotifier(int fd) : fd_(fd), flags_(0)
56 PROFILER_LOG_DEBUG(LOG_CORE, "EventNotifier bind eventfd %d done!", fd_);
59 EventNotifier::~EventNotifier()
61 PROFILER_LOG_DEBUG(LOG_CORE, "EventNotifier close eventfd %d", fd_);
65 int EventNotifier::GetFd() const
70 uint64_t EventNotifier::Take() const
78 bool EventNotifier::Post(uint64_t value) const