Showing the changes to src/core/util_thread.cpp (1 of 37 files). Show all
Unified · Split
| @@ -505,7 +505,7 @@ t_CKBOOL XThreadUtil::set_priority( CHUCK_THREAD tid, t_CKINT priority ) · 504 unmodified lines | |||
| 505 | // policy | 505 | // policy |
| 506 | policy = SCHED_RR; | 506 | policy = SCHED_RR; |
| 507 | // priority | 507 | // priority |
| 508 | param.sched_priority = priority; | 508 | param.sched_priority = (int)priority; |
| 509 | // set for thread, pthread style | 509 | // set for thread, pthread style |
| 510 | if( pthread_setschedparam( tid, policy, ¶m ) ) | 510 | if( pthread_setschedparam( tid, policy, ¶m ) ) |
| 511 | return FALSE; | 511 | return FALSE; |