Changeset 1842
- Timestamp:
- Mar 4, 2008 2:49:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_unix.c
r1841 r1842 246 246 { 247 247 #if PJ_HAS_THREADS 248 s ched_param param;248 struct sched_param param; 249 249 int policy; 250 250 int rc; … … 268 268 { 269 269 #if PJ_HAS_THREADS 270 s ched_param param;270 struct sched_param param; 271 271 int policy; 272 272 int rc; … … 278 278 param.sched_priority = prio; 279 279 280 rc = pthread_setschedparam(t id, policy, ¶m);280 rc = pthread_setschedparam(thread->thread, policy, ¶m); 281 281 if (rc != 0) 282 282 return PJ_RETURN_OS_ERROR(rc); … … 297 297 PJ_DEF(int) pj_thread_get_prio_min(pj_thread_t *thread) 298 298 { 299 s ched_param param;299 struct sched_param param; 300 300 int policy; 301 301 int rc; … … 314 314 PJ_DEF(int) pj_thread_get_prio_max(pj_thread_t *thread) 315 315 { 316 s ched_param param;316 struct sched_param param; 317 317 int policy; 318 318 int rc;
Note: See TracChangeset
for help on using the changeset viewer.