summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/os_core_unix.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-03-04 14:49:27 +0000
committerBenny Prijono <bennylp@teluu.com>2008-03-04 14:49:27 +0000
commitf20e3435d9ce6fbbc7ca3194eda369e77531819c (patch)
treec075a3a868b8abf7344aa480b56bfb414aeb5ee5 /pjlib/src/pj/os_core_unix.c
parent5254d7c3a14177dffdf43c3ec7e5235b066d986e (diff)
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
Diffstat (limited to 'pjlib/src/pj/os_core_unix.c')
-rw-r--r--pjlib/src/pj/os_core_unix.c10
1 files changed, 5 insertions, 5 deletions
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, &param);
+ rc = pthread_setschedparam(thread->thread, policy, &param);
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;