|
Pol
Rev 533
|
#include <schedule.h>
Inheritance diagram for ScheduledTask: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 28 of file schedule.h.
| ScheduledTask::ScheduledTask | ( | polclock_t | next_run_clock | ) | [explicit] |
Definition at line 50 of file schedule.cpp.
| ScheduledTask::~ScheduledTask | ( | ) | [virtual] |
Definition at line 57 of file schedule.cpp.
| void ScheduledTask::cancel | ( | void | ) | [virtual] |
Definition at line 79 of file schedule.cpp.
References next_run_clock_.
Referenced by calc_scheduler_clocksleft(), and check_scheduled_tasks().
Here is the caller graph for this function:| virtual void ScheduledTask::execute | ( | polclock_t | now | ) | [pure virtual] |
Implemented in OneShotTask, and PeriodicTask.
Referenced by check_scheduled_tasks().
Here is the caller graph for this function:| bool ScheduledTask::late | ( | polclock_t | now | ) | [inline] |
Definition at line 70 of file schedule.cpp.
References next_run_clock_.
Referenced by check_scheduled_tasks().
Here is the caller graph for this function:| polclock_t ScheduledTask::next_run_clock | ( | ) | const [inline] |
Definition at line 54 of file schedule.h.
References next_run_clock_.
Referenced by check_scheduled_tasks(), RepSystem::schedule_repsys_task(), and RepSystem::show_repdata().
Here is the caller graph for this function:| bool ScheduledTask::ready | ( | polclock_t | now | ) | [inline] |
Definition at line 66 of file schedule.cpp.
References next_run_clock_.
Referenced by calc_scheduler_clocksleft(), and check_scheduled_tasks().
Here is the caller graph for this function:| polticks_t ScheduledTask::ticks_late | ( | polclock_t | now | ) | [inline] |
Definition at line 74 of file schedule.cpp.
References next_run_clock_.
Referenced by check_scheduled_tasks().
Here is the caller graph for this function:| polticks_t ScheduledTask::ticks_left | ( | polclock_t | now | ) | const |
| polclock_t calc_scheduler_clocksleft | ( | polclock_t | now | ) | [friend] |
Definition at line 257 of file schedule.cpp.
| void check_scheduled_tasks | ( | polclock_t * | clocksleft, |
| bool * | pactivity | ||
| ) | [friend] |
Definition at line 199 of file schedule.cpp.
| void check_scheduled_tasks2 | ( | void | ) | [friend] |
friend class SchComparer [friend] |
Definition at line 48 of file schedule.h.
bool ScheduledTask::cancelled [protected] |
Definition at line 45 of file schedule.h.
Referenced by cancel(), check_scheduled_tasks(), and OneShotTask::execute().
polclock_t ScheduledTask::last_run_clock_ [protected] |
Definition at line 47 of file schedule.h.
Referenced by PeriodicTask::execute(), and PeriodicTask::start().
polclock_t ScheduledTask::next_run_clock_ [protected] |
Definition at line 46 of file schedule.h.
Referenced by clocksleft(), PeriodicTask::execute(), late(), next_run_clock(), SchComparer::operator()(), ready(), PeriodicTask::start(), and ticks_late().