|
| TaskContext () |
|
| TaskContext (TaskScheduler::TaskContainer &&task, std::weak_ptr< TaskScheduler > &&owner) |
|
| TaskContext (TaskContext const &right) |
|
| TaskContext (TaskContext &&right) |
|
TaskContext & | operator= (TaskContext const &right) |
|
TaskContext & | operator= (TaskContext &&right) |
|
bool | IsExpired () const |
| Returns true if the owner was deallocated and this context has expired. More...
|
|
bool | IsInGroup (TaskScheduler::group_t const group) const |
| Returns true if the event is in the given group. More...
|
|
TaskContext & | SetGroup (TaskScheduler::group_t const group) |
| Sets the event in the given group. More...
|
|
TaskContext & | ClearGroup () |
| Removes the group from the event. More...
|
|
TaskScheduler::repeated_t | GetRepeatCounter () const |
| Returns the repeat counter which increases every time the task is repeated. More...
|
|
template<class _Rep , class _Period > |
TaskContext & | Repeat (std::chrono::duration< _Rep, _Period > const &duration) |
|
TaskContext & | Repeat () |
|
template<class _RepLeft , class _PeriodLeft , class _RepRight , class _PeriodRight > |
TaskContext & | Repeat (std::chrono::duration< _RepLeft, _PeriodLeft > const &min, std::chrono::duration< _RepRight, _PeriodRight > const &max) |
|
TaskContext & | Async (std::function< void()> const &callable) |
|
template<class _Rep , class _Period > |
TaskContext & | Schedule (std::chrono::duration< _Rep, _Period > const &time, TaskScheduler::task_handler_t const &task) |
|
template<class _Rep , class _Period > |
TaskContext & | Schedule (std::chrono::duration< _Rep, _Period > const &time, TaskScheduler::group_t const group, TaskScheduler::task_handler_t const &task) |
|
template<class _RepLeft , class _PeriodLeft , class _RepRight , class _PeriodRight > |
TaskContext & | Schedule (std::chrono::duration< _RepLeft, _PeriodLeft > const &min, std::chrono::duration< _RepRight, _PeriodRight > const &max, TaskScheduler::task_handler_t const &task) |
|
template<class _RepLeft , class _PeriodLeft , class _RepRight , class _PeriodRight > |
TaskContext & | Schedule (std::chrono::duration< _RepLeft, _PeriodLeft > const &min, std::chrono::duration< _RepRight, _PeriodRight > const &max, TaskScheduler::group_t const group, TaskScheduler::task_handler_t const &task) |
|
TaskContext & | CancelAll () |
| Cancels all tasks from within the context. More...
|
|
TaskContext & | CancelGroup (TaskScheduler::group_t const group) |
| Cancel all tasks of a single group from within the context. More...
|
|
TaskContext & | CancelGroupsOf (std::vector< TaskScheduler::group_t > const &groups) |
|
template<class _Rep , class _Period > |
TaskContext & | DelayAll (std::chrono::duration< _Rep, _Period > const &duration) |
| Delays all tasks with the given duration from within the context. More...
|
|
template<class _RepLeft , class _PeriodLeft , class _RepRight , class _PeriodRight > |
TaskContext & | DelayAll (std::chrono::duration< _RepLeft, _PeriodLeft > const &min, std::chrono::duration< _RepRight, _PeriodRight > const &max) |
| Delays all tasks with a random duration between min and max from within the context. More...
|
|
template<class _Rep , class _Period > |
TaskContext & | DelayGroup (TaskScheduler::group_t const group, std::chrono::duration< _Rep, _Period > const &duration) |
| Delays all tasks of a group with the given duration from within the context. More...
|
|
template<class _RepLeft , class _PeriodLeft , class _RepRight , class _PeriodRight > |
TaskContext & | DelayGroup (TaskScheduler::group_t const group, std::chrono::duration< _RepLeft, _PeriodLeft > const &min, std::chrono::duration< _RepRight, _PeriodRight > const &max) |
| Delays all tasks of a group with a random duration between min and max from within the context. More...
|
|
template<class _Rep , class _Period > |
TaskContext & | RescheduleAll (std::chrono::duration< _Rep, _Period > const &duration) |
| Reschedule all tasks with the given duration. More...
|
|
template<class _RepLeft , class _PeriodLeft , class _RepRight , class _PeriodRight > |
TaskContext & | RescheduleAll (std::chrono::duration< _RepLeft, _PeriodLeft > const &min, std::chrono::duration< _RepRight, _PeriodRight > const &max) |
| Reschedule all tasks with a random duration between min and max. More...
|
|
template<class _Rep , class _Period > |
TaskContext & | RescheduleGroup (TaskScheduler::group_t const group, std::chrono::duration< _Rep, _Period > const &duration) |
| Reschedule all tasks of a group with the given duration. More...
|
|
template<class _RepLeft , class _PeriodLeft , class _RepRight , class _PeriodRight > |
TaskContext & | RescheduleGroup (TaskScheduler::group_t const group, std::chrono::duration< _RepLeft, _PeriodLeft > const &min, std::chrono::duration< _RepRight, _PeriodRight > const &max) |
| Reschedule all tasks of a group with a random duration between min and max. More...
|
|