1 #include "Kokyu_defs.h"
3 #if ! defined (__ACE_INLINE__)
4 #include "Kokyu_defs.inl"
5 #endif /* __ACE_INLINE__ */
9 Dispatch_Command::~Dispatch_Command ()
13 DSRT_ConfigInfo::DSRT_ConfigInfo ()
14 :sched_policy_ (ACE_SCHED_RR
),
15 sched_scope_ (ACE_SCOPE_THREAD
)
19 Dispatcher_Attributes::Dispatcher_Attributes()
20 :immediate_activation_ (0),
21 sched_policy_ (ACE_SCHED_FIFO
),
22 sched_scope_ (ACE_SCOPE_THREAD
),
23 base_thread_creation_flags_ (THR_NEW_LWP
| THR_BOUND
| THR_JOINABLE
)
27 int Dispatcher_Attributes::thread_creation_flags () const
29 int thread_creation_flags
= base_thread_creation_flags_
;
31 switch (sched_policy_
)
34 thread_creation_flags
|= THR_SCHED_FIFO
;
38 thread_creation_flags
|= THR_SCHED_DEFAULT
;
42 thread_creation_flags
|= THR_SCHED_RR
;
48 case ACE_SCOPE_PROCESS
:
50 thread_creation_flags
|= THR_SCOPE_PROCESS
;
53 case ACE_SCOPE_THREAD
:
55 thread_creation_flags
|= THR_SCOPE_SYSTEM
;
58 return thread_creation_flags
;