Compile fixes
[ACE_TAO.git] / ACE / Kokyu / DSRT_Dispatcher_Impl_T.cpp
blob4f48809e72ce08b35e1e86b39c0e7315f1f206f7
1 #ifndef DSRT_DISPATCHER_IMPL_T_CPP
2 #define DSRT_DISPATCHER_IMPL_T_CPP
4 #include "DSRT_Dispatcher_Impl_T.h"
6 #if ! defined (__ACE_INLINE__)
7 #include "DSRT_Dispatcher_Impl_T.inl"
8 #endif /* __ACE_INLINE__ */
10 namespace Kokyu
12 template <class DSRT_Scheduler_Traits>
13 DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits>::
14 DSRT_Dispatcher_Impl (ACE_Sched_Params::Policy sched_policy,
15 int sched_scope)
16 : sched_policy_ (sched_policy),
17 sched_scope_ (sched_scope),
18 min_prio_ (ACE_Sched_Params::priority_min
19 (sched_policy_,
20 sched_scope)),
21 max_prio_ (ACE_Sched_Params::priority_max
22 (sched_policy_,
23 sched_scope)),
24 executive_prio_ (max_prio_),
25 blocked_prio_ (ACE_Sched_Params::previous_priority
26 (sched_policy_,
27 max_prio_,
28 sched_scope)),
29 inactive_prio_ (min_prio_),
30 active_prio_ (ACE_Sched_Params::next_priority
31 (sched_policy_,
32 min_prio_)),
33 shutdown_flagged_ (0),
34 non_rt_thr_flags_ (THR_NEW_LWP | THR_JOINABLE | THR_BOUND),
35 curr_scheduled_thr_handle_ (0)
37 if (sched_policy_ == ACE_SCHED_FIFO)
38 rt_thr_flags_ = non_rt_thr_flags_ | THR_SCHED_FIFO;
39 else if (sched_policy_ == ACE_SCHED_RR)
40 rt_thr_flags_ = non_rt_thr_flags_ | THR_SCHED_RR;
43 //virtual - so don't inline
44 template <class DSRT_Scheduler_Traits>
45 DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits>::~DSRT_Dispatcher_Impl ()
51 #endif /* DSRT_DISPATCHER_IMPL_T_CPP */