14 std::function<
void()> runEventLoop,
15 std::chrono::milliseconds delta) {
26 [
this, runEventLoop]() ->
bool {
void scheduleEvery(Predicate p, std::chrono::milliseconds delta)
Repeat p until it return false.
std::atomic< bool > stopRequest
Start stop machinery.
#define WAIT_LOCK(cs, name)
#define EXCLUSIVE_LOCKS_REQUIRED(...)
bool startEventLoop(CScheduler &scheduler, std::function< void()> runEventLoop, std::chrono::milliseconds delta)
std::condition_variable cond_running