Pol
Revision:cb584c9
|
#include <schedule.h>
Public Member Functions | |
ScheduledTask (polclock_t next_run_clock) | |
virtual | ~ScheduledTask () |
virtual void | cancel (void) |
polclock_t | clocksleft (polclock_t now) |
virtual void | execute (polclock_t now)=0 |
bool | late (polclock_t now) |
polclock_t | next_run_clock () const |
bool | ready (polclock_t now) |
polticks_t | ticks_late (polclock_t now) |
polticks_t | ticks_left (polclock_t now) const |
Protected Attributes | |
bool | cancelled |
polclock_t | last_run_clock_ |
polclock_t | next_run_clock_ |
Friends | |
polclock_t | calc_scheduler_clocksleft (polclock_t now) |
void | check_scheduled_tasks (polclock_t *clocksleft, bool *pactivity) |
void | check_scheduled_tasks2 (void) |
class | SchComparer |
Definition at line 39 of file schedule.h.
|
explicit |
Definition at line 41 of file schedule.cpp.
|
virtual |
Definition at line 46 of file schedule.cpp.
|
virtual |
Reimplemented in Pol::Core::OneShotTask.
Definition at line 48 of file schedule.cpp.
References cancelled.
Referenced by Pol::Core::OneShotTask::cancel().
polclock_t Pol::Core::ScheduledTask::clocksleft | ( | polclock_t | now | ) |
Definition at line 66 of file schedule.cpp.
References next_run_clock_.
Referenced by Pol::Core::calc_scheduler_clocksleft(), and Pol::Core::check_scheduled_tasks().
|
pure virtual |
Implemented in Pol::Core::OneShotTask, and Pol::Core::PeriodicTask.
Referenced by Pol::Core::check_scheduled_tasks().
|
inline |
Definition at line 57 of file schedule.cpp.
References next_run_clock_.
Referenced by Pol::Core::check_scheduled_tasks().
|
inline |
Definition at line 66 of file schedule.h.
References Pol::Core::calc_scheduler_clocksleft(), Pol::Core::check_scheduled_tasks(), and Pol::Core::check_scheduled_tasks2().
Referenced by Pol::Core::check_scheduled_tasks(), Pol::Core::RepSystem::schedule_repsys_task(), and Pol::Core::RepSystem::show_repdata().
|
inline |
Definition at line 53 of file schedule.cpp.
References next_run_clock_.
Referenced by Pol::Core::calc_scheduler_clocksleft(), and Pol::Core::check_scheduled_tasks().
|
inline |
Definition at line 61 of file schedule.cpp.
References next_run_clock_.
Referenced by Pol::Core::check_scheduled_tasks().
polticks_t Pol::Core::ScheduledTask::ticks_left | ( | polclock_t | now | ) | const |
|
friend |
Definition at line 245 of file schedule.cpp.
|
friend |
Definition at line 186 of file schedule.cpp.
|
friend |
|
friend |
Definition at line 60 of file schedule.h.
|
protected |
Definition at line 57 of file schedule.h.
Referenced by cancel(), Pol::Core::check_scheduled_tasks(), and Pol::Core::OneShotTask::execute().
|
protected |
Definition at line 59 of file schedule.h.
Referenced by Pol::Core::PeriodicTask::execute(), and Pol::Core::PeriodicTask::start().
|
protected |
Definition at line 58 of file schedule.h.
Referenced by clocksleft(), Pol::Core::PeriodicTask::execute(), late(), Pol::Core::SchComparer::operator()(), ready(), Pol::Core::PeriodicTask::start(), and ticks_late().