summaryrefslogtreecommitdiff
path: root/ace/Sched_Params.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-05 20:54:26 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-05 20:54:26 +0000
commitf48bbb501b1cda971fa44ce082c19149b3dce125 (patch)
treea07a243e94ffdda76590029e4b5a976ae9ea79ca /ace/Sched_Params.i
parent1efa74d63060212a34758987e38015e869757b4f (diff)
downloadATCD-f48bbb501b1cda971fa44ce082c19149b3dce125.tar.gz
revised thread/process priority interface (merged in posix_thread_priority branch)
Diffstat (limited to 'ace/Sched_Params.i')
-rw-r--r--ace/Sched_Params.i47
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;
}