Changeset 3320 for pjproject/trunk


Ignore:
Timestamp:
Sep 24, 2010 7:49:32 AM (14 years ago)
Author:
bennylp
Message:

Misc (re #1134): fixed wrong OpenBSD thread priority max value (thanks David Coppa for the report)

File:
1 edited

Legend:

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

    r3314 r3320  
    315315    return sched_get_priority_min(policy); 
    316316#elif defined __OpenBSD__ 
    317     /* OpenBSD doesn't have sched_get_priority_min/_max */ 
     317    /* Thread prio min/max are declared in OpenBSD private hdr */ 
    318318    return 0; 
    319319#else 
     
    340340    return sched_get_priority_max(policy); 
    341341#elif defined __OpenBSD__ 
    342     /* OpenBSD doesn't have sched_get_priority_min/_max */ 
    343     return 0; 
     342    /* Thread prio min/max are declared in OpenBSD private hdr */ 
     343    return 31; 
    344344#else 
    345345    pj_assert("pj_thread_get_prio_max() not supported!"); 
Note: See TracChangeset for help on using the changeset viewer.