36 LOG(ERROR) <<
"Attempt to reattach EventBase to LoopController";
108 std::function<
void()> func,
114 std::chrono::duration_cast<std::chrono::milliseconds>(time -
Clock::now())
118 delay_ms = std::max<decltype(delay_ms)>(delay_ms, 0);
void timedSchedule(std::function< void()> func, TimePoint time) override
void scheduleThreadSafe() override
bool hasReadyTasks() const
Executor::KeepAlive< VirtualEventBase > eventBaseKeepAlive_
~EventBaseLoopController() override
void runInEventBaseThread(F &&f)
EventBase & getEventBase()
void attachEventBase(EventBase &eventBase)
std::chrono::steady_clock::time_point now()
bool tryRunAfterDelay(Func cob, uint32_t milliseconds, InternalEnum internal=InternalEnum::NORMAL)
—— Concurrent Priority Queue Implementation ——
virtual void run(folly::Function< void()> func)=0
std::chrono::time_point< Clock > TimePoint
InlineFunctionRunner * loopRunner_
void loopUntilNoReadyImpl()
Single-threaded task execution engine.
void runInLoop(LoopCallback *callback, bool thisIteration=false)
void cancelLoopCallback()
void setFiberManager(FiberManager *fm) override
bool shouldRunLoopRemote()
folly::Function< void()> callback_
Executor::KeepAlive< ExecutorT > getKeepAliveToken(ExecutorT *executor)
EventBaseLoopController()
ControllerCallback callback_
VirtualEventBase * eventBase_
folly::VirtualEventBase & getVirtualEventBase()
std::chrono::nanoseconds time()
std::atomic< bool > eventBaseAttached_