5 #ifndef BITCOIN_EVENTLOOP_H
6 #define BITCOIN_EVENTLOOP_H
12 #include <condition_variable>
23 std::function<
void()> runEventLoop,
24 std::chrono::milliseconds delta);
Simple class for background tasks that should be run periodically or once "after a while".
std::atomic< bool > stopRequest
Start stop machinery.
bool running GUARDED_BY(cs_running)
std::condition_variable cond_running
bool startEventLoop(CScheduler &scheduler, std::function< void()> runEventLoop, std::chrono::milliseconds delta)