3 //=============================================================================
5 * @file Sched_Params.inl
9 //=============================================================================
12 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ACE_Sched_Params::ACE_Sched_Params (
17 const ACE_Sched_Priority priority,
19 const ACE_Time_Value &quantum)
27 ACE_INLINE ACE_Sched_Params::~ACE_Sched_Params (void)
31 ACE_INLINE ACE_Sched_Params::Policy
32 ACE_Sched_Params::policy (void) const
38 ACE_Sched_Params::policy (const ACE_Sched_Params::Policy policy)
40 this->policy_ = policy;
43 ACE_INLINE ACE_Sched_Priority
44 ACE_Sched_Params::priority (void) const
46 return this->priority_;
50 ACE_Sched_Params::priority (const ACE_Sched_Priority priority)
52 this->priority_ = priority;
56 ACE_Sched_Params::scope (void) const
62 ACE_Sched_Params::scope (const int scope)
67 ACE_INLINE const ACE_Time_Value &
68 ACE_Sched_Params::quantum (void) const
70 return this->quantum_;
74 ACE_Sched_Params::quantum (const ACE_Time_Value &quant)
76 this->quantum_ = quant;
79 ACE_INLINE const ACE_Sched_Params::Policy &
80 ACE_Sched_Priority_Iterator::policy (void) const
86 ACE_Sched_Priority_Iterator::scope (void) const
92 ACE_Sched_Priority_Iterator::ACE_Sched_Priority_Iterator (const ACE_Sched_Params::Policy &policy,
99 priority_ = ACE_Sched_Params::priority_min (this->policy (), this->scope ());
103 ACE_Sched_Priority_Iterator::~ACE_Sched_Priority_Iterator (void)
108 ACE_Sched_Priority_Iterator::more (void) const
114 ACE_Sched_Priority_Iterator::priority (void) const
116 return this->priority_;
120 ACE_Sched_Priority_Iterator::next (void)
125 int old_priority = this->priority_;
126 priority_ = ACE_Sched_Params::next_priority (this->policy (),
129 this->done_ = old_priority == priority_;
132 ACE_END_VERSIONED_NAMESPACE_DECL