diff options
Diffstat (limited to 'TAO/tests/RTScheduling/Current/Thread_Task.h')
-rw-r--r-- | TAO/tests/RTScheduling/Current/Thread_Task.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/TAO/tests/RTScheduling/Current/Thread_Task.h b/TAO/tests/RTScheduling/Current/Thread_Task.h new file mode 100644 index 00000000000..a6ae16092a1 --- /dev/null +++ b/TAO/tests/RTScheduling/Current/Thread_Task.h @@ -0,0 +1,30 @@ +//$Id$ +#ifndef THREAD_TASK_H +#define THREAD_TASK_H + +#include "tao/RTScheduling/RTScheduler.h" +#include "tao/ORB.h" +#include "ace/Task.h" + + +class Thread_Task : public ACE_Task <ACE_SYNCH> +{ + public: + Thread_Task (CORBA::ORB_ptr orb); + + int activate_task (int thr_count); + + ~Thread_Task (void); + + protected: + /// task svc + virtual int svc (void); + private: + CORBA::ORB_var orb_; + RTScheduling::Current_var current_; + int active_thread_count_; + TAO_SYNCH_MUTEX* shutdown_lock_; + TAO_SYNCH_MUTEX* lock_; +}; + +#endif /* THREAD_TASK_H */ |