/* * Task.h * * Created on: 30.11.2010 * Author: istsveise */ #ifndef TASK_H_ #define TASK_H_ #include class Task { public: Task(int); virtual ~Task(); protected: int T; // period in ms sem_t threadSem; public: friend void* timer_main(void* task); friend void* execute_main(void* task); virtual void execute() = 0; protected: void waitForNextCycle(); }; #endif /* TASK_H_ */