Searched refs:EventReactor (Results 1 – 10 of 10) sorted by relevance
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | event_reactor.h | 32 class EventReactor { 41 EventReactor(); 42 EventReactor(const EventReactor&) = delete; 43 EventReactor& operator=(const EventReactor&) = delete; 44 EventReactor(const EventReactor&&) = delete; 45 EventReactor& operator=(const EventReactor&&) = delete; 46 virtual ~EventReactor();
|
H A D | event_reactor.cpp | 29 EventReactor::EventReactor() in EventReactor() function in OHOS::Utils::EventReactor 34 EventReactor::~EventReactor() in ~EventReactor() 38 void EventReactor::UpdateEventHandler(EventHandler* handler) in UpdateEventHandler() 47 uint32_t EventReactor::SetUp() in SetUp() 63 void EventReactor::CleanUp() in CleanUp() 71 void EventReactor::RunLoop(int timeout) const in RunLoop() 85 void EventReactor::SwitchOn() in SwitchOn() 90 void EventReactor::SwitchOff() in SwitchOff() 95 uint32_t EventReactor::ScheduleTimer(const TimerCallback& cb, uint32_t interval, int& timerFd, bool… in ScheduleTimer() 111 void EventReactor::CancelTimer(int timerFd) in CancelTimer()
|
H A D | event_handler.cpp | 23 EventHandler::EventHandler(int fd, EventReactor* r) in EventHandler() 24 :fd_(fd), events_(EventReactor::NONE_EVENT), reactor_(r) in EventHandler() 30 events_ |= EventReactor::READ_EVENT; in EnableRead() 36 events_ = EventReactor::NONE_EVENT; in DisableAll() 42 if (events & (EventReactor::READ_EVENT)) { in HandleEvents()
|
H A D | event_handler.h | 28 class EventReactor; variable 34 EventHandler(int fd, EventReactor* r); 48 const EventReactor* GetEventReactor() const { return reactor_; } in GetEventReactor() 60 EventReactor* reactor_;
|
H A D | event_demultiplexer.cpp | 78 if (handler->Events() == EventReactor::NONE_EVENT) { in UpdateEventHandler() 149 return EventReactor::READ_EVENT; in Epoll2Reactor() 152 return EventReactor::NONE_EVENT; in Epoll2Reactor() 158 case EventReactor::NONE_EVENT: in Reactor2Epoll() 160 case EventReactor::READ_EVENT: in Reactor2Epoll()
|
H A D | timer_event_handler.h | 27 class EventReactor; variable 33 TimerEventHandler(EventReactor* p, uint32_t timeout, bool once);
|
H A D | timer_event_handler.cpp | 32 TimerEventHandler::TimerEventHandler(EventReactor* p, uint32_t timeout /* ms */, bool once) in TimerEventHandler()
|
H A D | timer.cpp | 29 reactor_(new EventReactor()) in Timer()
|
/ohos5.0/commonlibrary/c_utils/base/include/ |
H A D | timer.h | 30 class EventReactor; variable 144 EventReactor *reactor_;
|
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/ |
H A D | c_utils_guide_event.md | 48 class EventReactor{ 83 IOEventReactor ..|> EventReactor
|