diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-07 16:12:23 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-07 16:12:23 +0000 |
commit | 6ee4e549a98595de8a43053781db4de9733c751c (patch) | |
tree | 66d35aceda3e6171c8baddcdb45d7b2eb2010c2d /ace/OS.cpp | |
parent | 2d9adbb5fa229661762cf761aeb04d9b13c1a7aa (diff) | |
download | ATCD-6ee4e549a98595de8a43053781db4de9733c751c.tar.gz |
(sched_param): with STHREADS, map ACE_SCOPE_THREAD to ACE_SCOPE_PROCESS
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r-- | ace/OS.cpp | 4 |
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 (); |