Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
scheduler.h
Go to the documentation of this file.
46 void schedule(Function f, boost::chrono::system_clock::time_point t=boost::chrono::system_clock::now());
105 explicit SingleThreadedSchedulerClient(CScheduler *pschedulerIn) : m_pscheduler(pschedulerIn) {}
Class used by CScheduler clients which may schedule multiple jobs which are required to be run serial...
Definition: scheduler.h:93
std::multimap< boost::chrono::system_clock::time_point, Function > taskQueue
Definition: scheduler.h:78
void MaybeScheduleProcessQueue()
Definition: scheduler.cpp:149
void scheduleEvery(Function f, int64_t deltaMilliSeconds)
Definition: scheduler.cpp:126
void scheduleFromNow(Function f, int64_t deltaMilliSeconds)
Definition: scheduler.cpp:115
void schedule(Function f, boost::chrono::system_clock::time_point t=boost::chrono::system_clock::now())
Definition: scheduler.cpp:106
SingleThreadedSchedulerClient(CScheduler *pschedulerIn)
Definition: scheduler.h:105
bool m_are_callbacks_running
Definition: scheduler.h:99
std::list< std::function< void(void)> > m_callbacks_pending
Definition: scheduler.h:98
size_t CallbacksPending()
Definition: scheduler.cpp:210
CCriticalSection m_cs_callbacks_pending
Definition: scheduler.h:97
bool AreThreadsServicingQueue() const
Definition: scheduler.cpp:143
size_t getQueueInfo(boost::chrono::system_clock::time_point &first, boost::chrono::system_clock::time_point &last) const
Definition: scheduler.cpp:131
Definition: scheduler.h:37
void AddToProcessQueue(std::function< void(void)> func)
Definition: scheduler.cpp:190
Wrapped mutex: supports recursive locking, but no waiting TODO: We should move away from using the re...
Definition: sync.h:94