From f20e3435d9ce6fbbc7ca3194eda369e77531819c Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 4 Mar 2008 14:49:27 +0000 Subject: Ticket #500: implementation of thread priority setting on os_core_unix.c git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1842 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/os_core_unix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pjlib') diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c index 31cbb2e9..4ce63a7a 100644 --- a/pjlib/src/pj/os_core_unix.c +++ b/pjlib/src/pj/os_core_unix.c @@ -245,7 +245,7 @@ PJ_DEF(pj_bool_t) pj_thread_is_registered(void) PJ_DEF(int) pj_thread_get_prio(pj_thread_t *thread) { #if PJ_HAS_THREADS - sched_param param; + struct sched_param param; int policy; int rc; @@ -267,7 +267,7 @@ PJ_DEF(int) pj_thread_get_prio(pj_thread_t *thread) PJ_DEF(pj_status_t) pj_thread_set_prio(pj_thread_t *thread, int prio) { #if PJ_HAS_THREADS - sched_param param; + struct sched_param param; int policy; int rc; @@ -277,7 +277,7 @@ PJ_DEF(pj_status_t) pj_thread_set_prio(pj_thread_t *thread, int prio) param.sched_priority = prio; - rc = pthread_setschedparam(tid, policy, ¶m); + rc = pthread_setschedparam(thread->thread, policy, ¶m); if (rc != 0) return PJ_RETURN_OS_ERROR(rc); @@ -296,7 +296,7 @@ PJ_DEF(pj_status_t) pj_thread_set_prio(pj_thread_t *thread, int prio) */ PJ_DEF(int) pj_thread_get_prio_min(pj_thread_t *thread) { - sched_param param; + struct sched_param param; int policy; int rc; @@ -313,7 +313,7 @@ PJ_DEF(int) pj_thread_get_prio_min(pj_thread_t *thread) */ PJ_DEF(int) pj_thread_get_prio_max(pj_thread_t *thread) { - sched_param param; + struct sched_param param; int policy; int rc; -- cgit v1.2.3