Changeset 1842


Ignore:
Timestamp:
Mar 4, 2008 2:49:27 PM (11 years ago)
Author:
bennylp
Message:

Ticket #500: implementation of thread priority setting on os_core_unix.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_unix.c

    r1841 r1842  
    246246{ 
    247247#if PJ_HAS_THREADS 
    248     sched_param param; 
     248    struct sched_param param; 
    249249    int policy; 
    250250    int rc; 
     
    268268{ 
    269269#if PJ_HAS_THREADS 
    270     sched_param param; 
     270    struct sched_param param; 
    271271    int policy; 
    272272    int rc; 
     
    278278    param.sched_priority = prio; 
    279279 
    280     rc = pthread_setschedparam(tid, policy, &param); 
     280    rc = pthread_setschedparam(thread->thread, policy, &param); 
    281281    if (rc != 0) 
    282282        return PJ_RETURN_OS_ERROR(rc); 
     
    297297PJ_DEF(int) pj_thread_get_prio_min(pj_thread_t *thread) 
    298298{ 
    299     sched_param param; 
     299    struct sched_param param; 
    300300    int policy; 
    301301    int rc; 
     
    314314PJ_DEF(int) pj_thread_get_prio_max(pj_thread_t *thread) 
    315315{ 
    316     sched_param param; 
     316    struct sched_param param; 
    317317    int policy; 
    318318    int rc; 
Note: See TracChangeset for help on using the changeset viewer.