Ignore:
Timestamp:
Mar 4, 2008 3:31:13 PM (14 years ago)
Author:
bennylp
Message:

Ticket #501: Set master port worker thread priority to highest by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/clock_thread.c

    r1747 r1843  
    216216    pjmedia_clock *clock = (pjmedia_clock*) arg; 
    217217 
     218    /* Set thread priority to maximum unless not wanted. */ 
     219    if ((clock->options & PJMEDIA_CLOCK_NO_HIGHEST_PRIO) == 0) { 
     220        int max = pj_thread_get_prio_max(pj_thread_this()); 
     221        if (max > 0) 
     222            pj_thread_set_prio(pj_thread_this(), max); 
     223    } 
     224 
    218225    /* Get the first tick */ 
    219226    pj_get_timestamp(&clock->next_tick); 
Note: See TracChangeset for help on using the changeset viewer.