Home
last modified time | relevance | path

Searched refs:EventReactor (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/src/
H A Devent_reactor.h32 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 Devent_reactor.cpp29 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 Devent_handler.cpp23 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 Devent_handler.h28 class EventReactor; variable
34 EventHandler(int fd, EventReactor* r);
48 const EventReactor* GetEventReactor() const { return reactor_; } in GetEventReactor()
60 EventReactor* reactor_;
H A Devent_demultiplexer.cpp78 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 Dtimer_event_handler.h27 class EventReactor; variable
33 TimerEventHandler(EventReactor* p, uint32_t timeout, bool once);
H A Dtimer_event_handler.cpp32 TimerEventHandler::TimerEventHandler(EventReactor* p, uint32_t timeout /* ms */, bool once) in TimerEventHandler()
H A Dtimer.cpp29 reactor_(new EventReactor()) in Timer()
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dtimer.h30 class EventReactor; variable
144 EventReactor *reactor_;
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc_utils_guide_event.md48 class EventReactor{
83 IOEventReactor ..|> EventReactor