3 #include /**/ "ace/pre.h"
6 #include "FP_Scheduler.h"
7 #include "ace/Sched_Params.h"
8 #include "tao/ORB_Core.h"
11 #include "FP_DT_Creator.h"
15 class DT_Test
:public ACE_Task
<ACE_SYNCH
>
21 void check_supported_priorities (void);
23 int init (int argc
, ACE_TCHAR
*argv
[]);
25 void run (int argc
, ACE_TCHAR
*argv
[]);
27 void dt_creator (FP_DT_Creator
* dt_creator
);
28 FP_DT_Creator
* dt_creator (void);
30 Fixed_Priority_Scheduler
* scheduler (void);
32 int activate_task (void);
34 CORBA::ORB_ptr
orb (void);
40 virtual int svc (void);
46 long thr_sched_policy_
;
47 long thr_scope_policy_
;
48 ACE_Sched_Params::Policy sched_policy_
;
52 RTScheduling::Current_var current_
;
53 FP_DT_Creator
* dt_creator_
;
54 PortableServer::Servant_var
<Fixed_Priority_Scheduler
> scheduler_
;
55 RTCORBA::RTORB_var rt_orb_
;
56 /// Reference to the root poa.
57 PortableServer::POA_var root_poa_
;
61 typedef ACE_Singleton
<DT_Test
, TAO_SYNCH_MUTEX
> DT_TEST
;
63 #include /**/ "ace/post.h"