mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-15 14:43:32 +02:00
align with 1.4.4
This commit is contained in:
parent
c3e2e50af4
commit
d22ba992c8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user