Raven Core
3.0.0
P2P Digital Currency
|
Class used by CScheduler clients which may schedule multiple jobs which are required to be run serially. More...
#include <scheduler.h>
Public Member Functions | |
SingleThreadedSchedulerClient (CScheduler *pschedulerIn) | |
void | AddToProcessQueue (std::function< void(void)> func) |
void | EmptyQueue () |
Private Member Functions | |
void | MaybeScheduleProcessQueue () |
void | ProcessQueue () |
Private Attributes | |
CScheduler * | m_pscheduler |
CCriticalSection | m_cs_callbacks_pending |
std::list< std::function< void(void)> > | m_callbacks_pending |
bool | m_are_callbacks_running = false |
Class used by CScheduler clients which may schedule multiple jobs which are required to be run serially.
Does not require such jobs to be executed on the same thread, but no two jobs will be executed at the same time.
Definition at line 94 of file scheduler.h.
|
inlineexplicit |
Definition at line 106 of file scheduler.h.
void SingleThreadedSchedulerClient::AddToProcessQueue | ( | std::function< void(void)> | func | ) |
Definition at line 191 of file scheduler.cpp.
void SingleThreadedSchedulerClient::EmptyQueue | ( | ) |
Definition at line 201 of file scheduler.cpp.
|
private |
Definition at line 150 of file scheduler.cpp.
|
private |
Definition at line 162 of file scheduler.cpp.
|
private |
Definition at line 100 of file scheduler.h.
|
private |
Definition at line 99 of file scheduler.h.
|
private |
Definition at line 98 of file scheduler.h.
|
private |
Definition at line 96 of file scheduler.h.