|
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 | edit (Sp< Scheduler::Job > &job, time_point t) |
| bool | cancel (Sp< Scheduler::Job > &job) |
| time_point | run () |
| time_point | getNextJobTime () const |
| const time_point & | time () const |
| time_point | syncTime () |
| void | syncTime (const time_point &n) |
Job scheduler.
Maintains the timings upon which to execute a job.
Definition at line 36 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 66 of file scheduler.h.
|
inline |
Runs the jobs to do up to now.
Definition at line 95 of file scheduler.h.
|
inline |
Accessors for the common time reference used for synchronizing operations.
Definition at line 123 of file scheduler.h.
1.8.14