Lines Matching refs:EventLoop

51 DEFINE_LOG_TAG("HiView-EventLoop");

53 EventLoop::EventLoop(const std::string &name) : name_(name), nextWakeupTime_(0), currentProcessingEvent_(nullptr)
56 EventLoop::~EventLoop()
61 bool EventLoop::InitEventQueueNotifier()
102 void EventLoop::WakeUp()
121 void EventLoop::StartLoop(bool createNewThread)
133 thread_ = std::make_unique<std::thread>(&EventLoop::Run, this);
140 void EventLoop::StopLoop()
161 uint64_t EventLoop::AddEvent(std::shared_ptr<EventHandler> handler, std::shared_ptr<Event> event, const Task task)
184 std::future<bool> EventLoop::AddEventForResult(std::shared_ptr<EventHandler> handler, std::shared_ptr<Event> event)
215 uint64_t EventLoop::AddTimerEvent(std::shared_ptr<EventHandler> handler, std::shared_ptr<Event> event,
251 bool EventLoop::RemoveEvent(uint64_t seq)
263 std::string EventLoop::GetRawName() const
269 void EventLoop::ResetTimerIfNeedLocked()
278 bool EventLoop::AddFileDescriptorEventCallback(
327 bool EventLoop::RemoveFileDescriptorEventCallback(const std::string &name)
355 void EventLoop::ModifyFdStatus()
372 void EventLoop::PollNextEvent(uint64_t timeout)
404 void EventLoop::Run()
425 void EventLoop::InitThreadName()
439 uint64_t EventLoop::ProcessQueuedEvent()
470 bool EventLoop::FetchNextEvent(uint64_t now, uint64_t& leftTimeNanosecond, LoopEvent& out)
501 void EventLoop::ProcessEvent(LoopEvent &event)
522 void EventLoop::ReInsertPeriodicEvent(uint64_t now, LoopEvent &event)
544 void EventLoop::WaitNextEvent(uint64_t leftTimeMill)
581 uint64_t EventLoop::NanoSecondSinceSystemStart()