align with 1.4.4

This commit is contained in:
Aleksandar Fabijanic 2012-09-15 15:09:27 +00:00
parent c3e2e50af4
commit d22ba992c8

View File

@ -119,7 +119,7 @@ void ThreadImpl::setOSPriorityImpl(int prio, int policy )
{
struct sched_param par;
par.sched_priority = prio;
if (pthread_setschedparam(_pData->thread, SCHED_OTHER, &par))
if (pthread_setschedparam(_pData->thread, policy, &par))
throw SystemException("cannot set thread priority");
}
_pData->prio = reverseMapPrio(prio, policy);