diff options
-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 (); |