diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-29 04:01:33 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-29 04:01:33 +0000 |
commit | 45f6114ba2581a7d1dec2bd8a9b84aeb876e052a (patch) | |
tree | 0680ad1b72afefe67e5c973324783b5553f32e11 /ace/Sched_Params.i | |
parent | c01e57bb9e0e5e2e88bb885d24aa7b56bf0e0660 (diff) | |
download | ATCD-45f6114ba2581a7d1dec2bd8a9b84aeb876e052a.tar.gz |
added ACE_OS::set_sched_params (), and ACE_Scheduling_Parameters and ACE_Thread_Priority classes
Diffstat (limited to 'ace/Sched_Params.i')
-rw-r--r-- | ace/Sched_Params.i | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/ace/Sched_Params.i b/ace/Sched_Params.i new file mode 100644 index 00000000000..95ad74c0ec7 --- /dev/null +++ b/ace/Sched_Params.i @@ -0,0 +1,72 @@ +/* -*- C++ -*- */ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// ACE +// +// = FILENAME +// Scheduling_Params.i +// +// = CREATION DATE +// 28 January 1997 +// +// = AUTHOR +// David Levine +// +// ============================================================================ + +ACE_INLINE +ACE_Scheduling_Params::ACE_Scheduling_Params ( + const ACE_Thread_Priority &priority, + const int scope, + const ACE_Time_Value &quantum) : + priority_ (priority), + scope_ (scope), + quantum_ (quantum) +{ +} + +ACE_INLINE +ACE_Scheduling_Params::~ACE_Scheduling_Params () +{ +} + +ACE_INLINE +const ACE_Thread_Priority & +ACE_Scheduling_Params::priority () const +{ + return priority_; +} + +ACE_INLINE +int +ACE_Scheduling_Params::scope () const +{ + return scope_; +} + +ACE_INLINE +void +ACE_Scheduling_Params::set_scope (const int scope) +{ + scope_ = scope; +} + +ACE_INLINE +const ACE_Time_Value & +ACE_Scheduling_Params::quantum () const +{ + return quantum_; +} + +ACE_INLINE +void +ACE_Scheduling_Params::set_quantum (const ACE_Time_Value &quantum) +{ + quantum_ = quantum; +} + + +// EOF |