Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / RTCORBA / Activity / Thread_Task.h
blob27b5b9727b99b4f9afb5706b45b235ae3c16c0a1
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 ();
33 /// Activate thread(s).
34 virtual int activate_task (ACE_Barrier* barrier, RTCORBA::PriorityMapping *priority_mapping);
36 protected:
37 /// task svc
38 virtual int svc ();
41 #endif /* THREAD_TASK_H */