Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / RTCORBA / Activity / Thread_Task.h
blob13563a579f68f5d4128350b0ce6daacf1842f49b
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Thread_Task.h
6 * A periodic task implementation that uses sleep.
8 * @author Pradeep Gore <pradeep@cs.wustl.edu>
9 */
10 //=============================================================================
11 #ifndef THREAD_TASK_H
12 #define THREAD_TASK_H
14 #include "Periodic_Task.h"
16 /**
17 * @class Thread_Task
19 * @brief A periodic task implementation that uses sleep.
21 * simplified Periodic Task -
22 * if the <name_> activity, which is fired every <period_> time intervals,
23 * exceeds its <exec_time_>, it is "late".
24 * if <exec_time_> is greater than the <period_>, the activity(s) for the
25 * overlapped period(s) are considered "missed".
27 class Thread_Task : public Periodic_Task
29 public:
30 /// Constructor
31 Thread_Task (void);
33 /// Activate thread(s).
34 virtual int activate_task (ACE_Barrier* barrier, RTCORBA::PriorityMapping *priority_mapping);
36 protected:
38 /// task svc
39 virtual int svc (void);
42 #endif /* THREAD_TASK_H */