C++ Distributed Hash Table
|
#include <scheduler.h>
Classes | |
struct | Job |
Public Member Functions | |
Sp< Scheduler::Job > | add (time_point t, std::function< void()> &&job_func) |
void | add (const Sp< Scheduler::Job > &job, time_point t) |
void | edit (Sp< Scheduler::Job > &job, time_point t) |
time_point | run () |
time_point | getNextJobTime () const |
const time_point & | time () const |
time_point | syncTime () |
Job scheduler.
Maintains the timings upon which to execute a job.
Definition at line 37 of file scheduler.h.
|
inline |
Adds another job to the queue.
time | The time upon which the job shall be executed. |
job_func | The job function to execute. |
Definition at line 53 of file scheduler.h.
|
inline |
Reschedules a job.
job | The job to edit. |
t | The time at which the job shall be rescheduled. |
Definition at line 71 of file scheduler.h.
|
inline |
Runs the jobs to do up to now.
Definition at line 87 of file scheduler.h.
|
inline |
Accessors for the common time reference used for synchronizing operations.
Definition at line 116 of file scheduler.h.