diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-12 18:38:45 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-12 18:38:45 +0000 |
commit | d85bd1bcd0d71fc620645ccc4a2ddf88ef3219ed (patch) | |
tree | fc67e81cf52a85602d98ec4e11a64034ab82aaaf /ace/Sched_Params.i | |
parent | d97e343634a25cb8148fa2bafbe9a10ec7e4dbd1 (diff) | |
download | ATCD-d85bd1bcd0d71fc620645ccc4a2ddf88ef3219ed.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Sched_Params.i')
-rw-r--r-- | ace/Sched_Params.i | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/ace/Sched_Params.i b/ace/Sched_Params.i index 4008ccb5fe7..d7e45fdf875 100644 --- a/ace/Sched_Params.i +++ b/ace/Sched_Params.i @@ -83,54 +83,50 @@ ACE_Sched_Params::quantum (const ACE_Time_Value &quant) } ACE_INLINE -ACE_Sched_Priority_Iterator::ACE_Sched_Priority_Iterator - (const ACE_Sched_Params::Policy& policy, int scope) +ACE_Sched_Priority_Iterator::ACE_Sched_Priority_Iterator (const ACE_Sched_Params::Policy &policy, + int scope) : policy_ (policy), scope_ (scope) { ACE_TRACE ("ACE_Sched_Priority_Iterator::ACE_Sched_Priority_Iterator"); + priority_ = ACE_Sched_Params::priority_min (this->policy (), this->scope ()); this->done_ = 0; } -ACE_INLINE -int ACE_Sched_Priority_Iterator::more (void) const +ACE_INLINE int +ACE_Sched_Priority_Iterator::more (void) const { return !this->done_; } -ACE_INLINE -int ACE_Sched_Priority_Iterator::priority (void) const +ACE_INLINE int +ACE_Sched_Priority_Iterator::priority (void) const { return this->priority_; } -ACE_INLINE -void ACE_Sched_Priority_Iterator::next (void) +ACE_INLINE void +ACE_Sched_Priority_Iterator::next (void) { if (this->done_) - { - return; - } + return; int old_priority = this->priority_; priority_ = ACE_Sched_Params::next_priority (this->policy (), this->priority (), this->scope ()); - this->done_ = (old_priority == priority_); + this->done_ = old_priority == priority_; } -ACE_INLINE -const ACE_Sched_Params::Policy& - ACE_Sched_Priority_Iterator::policy (void) const +ACE_INLINE const ACE_Sched_Params::Policy & +ACE_Sched_Priority_Iterator::policy (void) const { return this->policy_; } -ACE_INLINE -int ACE_Sched_Priority_Iterator::scope (void) const +ACE_INLINE int +ACE_Sched_Priority_Iterator::scope (void) const { return this->scope_; } - -// EOF |