diff options
Diffstat (limited to 'ace/Sched_Params.i')
-rw-r--r-- | ace/Sched_Params.i | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/ace/Sched_Params.i b/ace/Sched_Params.i index 82b7f29b61a..08d4eb810b9 100644 --- a/ace/Sched_Params.i +++ b/ace/Sched_Params.i @@ -7,7 +7,7 @@ // ACE // // = FILENAME -// Scheduling_Params.i +// Sched_Params.i // // = CREATION DATE // 28 January 1997 @@ -18,47 +18,68 @@ // ============================================================================ ACE_INLINE -ACE_Scheduling_Params::ACE_Scheduling_Params (const ACE_Thread_Priority &priority, - const int scope, - const ACE_Time_Value &quantum) - : priority_ (priority), +ACE_Sched_Params::ACE_Sched_Params ( + const Policy policy, + const ACE_Sched_Priority priority, + const int scope, + const ACE_Time_Value &quantum) + : policy_ (policy), + priority_ (priority), scope_ (scope), quantum_ (quantum) { } -ACE_INLINE ACE_Scheduling_Params::~ACE_Scheduling_Params (void) +ACE_INLINE ACE_Sched_Params::~ACE_Sched_Params (void) { } -ACE_INLINE const ACE_Thread_Priority & -ACE_Scheduling_Params::priority (void) const +ACE_INLINE ACE_Sched_Params::Policy +ACE_Sched_Params::policy (void) const +{ + return this->policy_; +} + +ACE_INLINE void +ACE_Sched_Params::policy (const ACE_Sched_Params::Policy policy) +{ + this->policy_ = policy; +} + +ACE_INLINE ACE_Sched_Priority +ACE_Sched_Params::priority (void) const { return this->priority_; } +ACE_INLINE void +ACE_Sched_Params::priority (const ACE_Sched_Priority priority) +{ + this->priority_ = priority; +} + ACE_INLINE int -ACE_Scheduling_Params::scope (void) const +ACE_Sched_Params::scope (void) const { return this->scope_; } ACE_INLINE void -ACE_Scheduling_Params::set_scope (const int scope) +ACE_Sched_Params::scope (const int scope) { this->scope_ = scope; } ACE_INLINE const ACE_Time_Value & -ACE_Scheduling_Params::quantum (void) const +ACE_Sched_Params::quantum (void) const { return this->quantum_; } ACE_INLINE void -ACE_Scheduling_Params::set_quantum (const ACE_Time_Value &quantum) +ACE_Sched_Params::quantum (const ACE_Time_Value &quant) { - this->quantum_ = quantum; + this->quantum_ = quant; } |