Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / RTScheduling / Thread_Cancel / Thread_Task.h
blobc59f70affb6320dd0373f1c80d6abe3f075b675c
1 #ifndef THREAD_TASK_H
2 #define THREAD_TASK_H
4 #include "tao/RTScheduling/RTScheduler.h"
5 #include "ace/Task.h"
6 #include "tao/ORB.h"
9 class Thread_Task : public ACE_Task <ACE_SYNCH>
11 public:
12 int activate_task (CORBA::ORB_ptr orb);
14 RTScheduling::Current::IdType* guids (void);
16 protected:
17 /// task svc
18 virtual int svc (void);
19 private:
20 CORBA::ORB_var orb_;
21 RTScheduling::Current_var current_;
22 RTScheduling::Current::IdType guid_ [4];
23 TAO_SYNCH_MUTEX mutex_;
24 int active_thread_count_;
27 #endif /* THREAD_TASK_H */