solarpowerlog trunk
CTimedWork Class Reference

#include <CTimedWork.h>

Collaboration diagram for CTimedWork:

List of all members.

Classes

struct  time_compare

Public Member Functions

 CTimedWork (CWorkScheduler *sch)
virtual ~CTimedWork ()
void run ()
 Thread entry point.
void ScheduleWork (ICommand *Command, struct timespec ts)
void RequestTermination (void)
 Ask thread to terminate.

Detailed Description

This class bundles a timed activity.

Currently, activities are tasks, which when ending, will enque an immediatte action.

Definition at line 50 of file CTimedWork.h.


Constructor & Destructor Documentation

CTimedWork::CTimedWork ( CWorkScheduler sch) [explicit]

Constructor: Takes the scheduler to inform, the command to execute and the time when.

Definition at line 49 of file CTimedWork.cpp.

Here is the call graph for this function:

CTimedWork::~CTimedWork ( ) [virtual]

Definition at line 53 of file CTimedWork.cpp.

Here is the call graph for this function:


Member Function Documentation

void CTimedWork::RequestTermination ( void  )

Ask thread to terminate.

Definition at line 145 of file CTimedWork.cpp.

void CTimedWork::run ( )

Thread entry point.

Definition at line 61 of file CTimedWork.cpp.

void CTimedWork::ScheduleWork ( ICommand Command,
struct timespec  ts 
)

Definition at line 66 of file CTimedWork.cpp.


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