Fabcoin Core
0.16.2
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 93 of file scheduler.h.
|
inline |
Definition at line 105 of file scheduler.h.
void SingleThreadedSchedulerClient::AddToProcessQueue | ( | std::function< void(void)> | func | ) |
void SingleThreadedSchedulerClient::EmptyQueue | ( | ) |
|
private |
Definition at line 149 of file scheduler.cpp.
|
private |
Definition at line 161 of file scheduler.cpp.
|
private |
Definition at line 99 of file scheduler.h.
|
private |
Definition at line 98 of file scheduler.h.
|
private |
Definition at line 97 of file scheduler.h.
|
private |
Definition at line 95 of file scheduler.h.