Pol  Rev 533
ScheduledTask Class Reference

#include <schedule.h>

+ Inheritance diagram for ScheduledTask:

List of all members.

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

Detailed Description

Definition at line 28 of file schedule.h.


Constructor & Destructor Documentation

ScheduledTask::ScheduledTask ( polclock_t  next_run_clock) [explicit]

Definition at line 50 of file schedule.cpp.

Definition at line 57 of file schedule.cpp.


Member Function Documentation

void ScheduledTask::cancel ( void  ) [virtual]

Reimplemented in OneShotTask.

Definition at line 61 of file schedule.cpp.

References cancelled.

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:

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:

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:


Friends And Related Function Documentation

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.


Member Data Documentation

bool ScheduledTask::cancelled [protected]

Definition at line 45 of file schedule.h.

Referenced by cancel(), check_scheduled_tasks(), and OneShotTask::execute().

Definition at line 47 of file schedule.h.

Referenced by PeriodicTask::execute(), and PeriodicTask::start().


The documentation for this class was generated from the following files: