Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / RTScheduling / MIF_Scheduler / test.h
blob18b914937ce7b674d1c60c4e4fa786828e3605b3
1 #ifndef TEST_H
2 #define TEST_H
4 #include "MIF_Scheduler.h"
5 #include "MIF_DT_Creator.h"
7 #include "ace/Sched_Params.h"
8 #include "tao/ORB_Core.h"
9 #include "ace/Synch.h"
10 #include "ace/Task.h"
12 class Task_Stats;
14 class DT_Test //:public ACE_Task <ACE_SYNCH>
16 public:
18 DT_Test (void);
20 int init (int argc, ACE_TCHAR *argv []);
22 void run (int argc, ACE_TCHAR *argv []);
24 void dt_creator (MIF_DT_Creator* dt_creator);
26 MIF_Scheduler* scheduler (void);
28 int activate_task (void);
31 /* protected: */
32 /* /// task svc */
33 /* virtual int svc (void); */
36 private:
37 /// = Policies
38 long thr_sched_policy_;
39 long thr_scope_policy_;
40 ACE_Sched_Params::Policy sched_policy_;
41 CORBA::ORB_var orb_;
42 int max_priority_;
43 int min_priority_;
44 RTScheduling::Current_var current_;
45 MIF_DT_Creator* dt_creator_;
46 PortableServer::Servant_var<MIF_Scheduler> scheduler_;
49 typedef ACE_Singleton <DT_Test, TAO_SYNCH_MUTEX> DT_TEST;
51 #endif /*TEST_H*/