Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / RTScheduling / Current / Thread_Task.h
blob2051a7bafdfbab98823caa97bdfc0b3d8336a8a4
1 #ifndef THREAD_TASK_H
2 #define THREAD_TASK_H
4 #include "tao/RTScheduling/RTScheduler.h"
5 #include "tao/ORB.h"
6 #include "ace/Task.h"
9 class Thread_Task : public ACE_Task <ACE_SYNCH>
11 public:
12 Thread_Task (CORBA::ORB_ptr orb);
14 int activate_task (int thr_count);
16 ~Thread_Task ();
18 protected:
19 /// task svc
20 virtual int svc ();
21 private:
22 CORBA::ORB_var orb_;
23 RTScheduling::Current_var current_;
24 int active_thread_count_;
25 TAO_SYNCH_MUTEX* shutdown_lock_;
26 TAO_SYNCH_MUTEX* lock_;
29 #endif /* THREAD_TASK_H */