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__ */
12 template <class DSRT_Scheduler_Traits
>
13 DSRT_Dispatcher_Impl
<DSRT_Scheduler_Traits
>::
14 DSRT_Dispatcher_Impl (ACE_Sched_Params::Policy sched_policy
,
16 : sched_policy_ (sched_policy
),
17 sched_scope_ (sched_scope
),
18 min_prio_ (ACE_Sched_Params::priority_min
21 max_prio_ (ACE_Sched_Params::priority_max
24 executive_prio_ (max_prio_
),
25 blocked_prio_ (ACE_Sched_Params::previous_priority
29 inactive_prio_ (min_prio_
),
30 active_prio_ (ACE_Sched_Params::next_priority
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 */