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 | 505 | // policy |
| 506 | 506 | policy = SCHED_RR; |
| 507 | 507 | // priority |
| 508 | − param.sched_priority = priority; | |
| 508 | + param.sched_priority = (int)priority; | |
| 509 | 509 | // set for thread, pthread style |
| 510 | 510 | if( pthread_setschedparam( tid, policy, ¶m ) ) |
| 511 | 511 | return FALSE; |