summaryrefslogtreecommitdiff
path: root/ace/Sched_Params.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-17 14:34:05 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-17 14:34:05 +0000
commitd6d3f2b9b07768273454cbb32986da1ccd249030 (patch)
tree7f82dfeddcda23c6b1cc3acd34acf1eda10059fc /ace/Sched_Params.cpp
parent019b03ca53b3630f219034311db0040d263f3547 (diff)
downloadATCD-d6d3f2b9b07768273454cbb32986da1ccd249030.tar.gz
(priority_min, priority_max, next_priority, previous_priority): not supported on MVS, via ACE_LACKS_SETSCHED
Diffstat (limited to 'ace/Sched_Params.cpp')
-rw-r--r--ace/Sched_Params.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/Sched_Params.cpp b/ace/Sched_Params.cpp
index b56b0a8860a..2c1151de54f 100644
--- a/ace/Sched_Params.cpp
+++ b/ace/Sched_Params.cpp
@@ -69,7 +69,7 @@ ACE_Sched_Params::priority_min (const Policy policy,
{
return 0;
}
-#elif defined (ACE_HAS_DCETHREADS) || defined(ACE_HAS_PTHREADS)
+#elif defined (ACE_HAS_DCETHREADS) || defined(ACE_HAS_PTHREADS) && !defined(ACE_LACKS_SETSCHED)
#if defined (PRI_FIFO_MIN) && defined (PRI_RR_MIN) && defined (PRI_OTHER_MIN)
if (scope == ACE_SCOPE_THREAD)
@@ -144,7 +144,7 @@ ACE_Sched_Params::priority_max (const Policy policy,
return policy == ACE_SCHED_OTHER
? ((tsinfo_t *) pcinfo.pc_clinfo)->ts_maxupri
: ((rtinfo_t *) pcinfo.pc_clinfo)->rt_maxpri;
-#elif defined (ACE_HAS_DCETHREADS) || defined(ACE_HAS_PTHREADS)
+#elif defined (ACE_HAS_DCETHREADS) || defined(ACE_HAS_PTHREADS) && !defined(ACE_LACKS_SETSCHED)
#if defined (PRI_FIFO_MAX) && defined (PRI_RR_MAX) && defined (PRI_OTHER_MAX)
if (scope == ACE_SCOPE_THREAD)
@@ -218,7 +218,7 @@ ACE_Sched_Params::next_priority (const Policy policy,
default:
return priority; // unknown priority: should never get here
}
-#elif defined (ACE_HAS_THREADS)
+#elif defined (ACE_HAS_THREADS) && !defined(ACE_LACKS_SETSCHED)
// including STHREADS, DCETHREADS, and PTHREADS
const int max = priority_max (policy, scope);
return priority < max ? priority + 1 : max;
@@ -261,7 +261,7 @@ ACE_Sched_Params::previous_priority (const Policy policy,
default:
return priority; // unknown priority: should never get here
}
-#elif defined (ACE_HAS_THREADS)
+#elif defined (ACE_HAS_THREADS) && !defined(ACE_LACKS_SETSCHED)
// including STHREADS, DCETHREADS, and PTHREADS
const int min = priority_min (policy, scope);
return priority > min ? priority - 1 : min;