summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-07 16:12:23 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-07 16:12:23 +0000
commite54e2bf9c6d63ff5d6e07993a687e7f47b44d94d (patch)
tree66d35aceda3e6171c8baddcdb45d7b2eb2010c2d /ace
parent455d1e36bf2c839ac626f870bca8188eb13c163f (diff)
downloadATCD-e54e2bf9c6d63ff5d6e07993a687e7f47b44d94d.tar.gz
(sched_param): with STHREADS, map ACE_SCOPE_THREAD to ACE_SCOPE_PROCESS
Diffstat (limited to 'ace')
-rw-r--r--ace/OS.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index a957881cc6e..16ff57bd45d 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -617,7 +617,9 @@ ACE_OS::sched_params (const ACE_Sched_Params &sched_params)
return -1;
}
- if (::priocntl ((idtype_t) sched_params.scope (), P_MYID, PC_SETPARMS,
+ if (::priocntl ((idtype_t) (sched_params.scope () == ACE_SCOPE_THREAD
+ ? ACE_SCOPE_PROCESS
+ : sched_params.scope ()), P_MYID, PC_SETPARMS,
(char *) &pcparms) < 0)
{
return ACE_OS::last_error ();