diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-09-24 07:49:32 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-09-24 07:49:32 +0000 |
commit | dfb5e40e66d2c0169adb3e0d22f2e83b9e842994 (patch) | |
tree | 89556e73b64df7328e87dcd11e360139219d961e /pjlib/src/pj/os_core_unix.c | |
parent | 0c0fd8df344b0e8ea7316500a27ed6186ac12a77 (diff) |
Misc (re #1134): fixed wrong OpenBSD thread priority max value (thanks David Coppa for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3320 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_core_unix.c')
-rw-r--r-- | pjlib/src/pj/os_core_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c index 917f8d10..c0552096 100644 --- a/pjlib/src/pj/os_core_unix.c +++ b/pjlib/src/pj/os_core_unix.c @@ -314,7 +314,7 @@ PJ_DEF(int) pj_thread_get_prio_min(pj_thread_t *thread) #if defined _POSIX_PRIORITY_SCHEDULING return sched_get_priority_min(policy); #elif defined __OpenBSD__ - /* OpenBSD doesn't have sched_get_priority_min/_max */ + /* Thread prio min/max are declared in OpenBSD private hdr */ return 0; #else pj_assert("pj_thread_get_prio_min() not supported!"); @@ -339,8 +339,8 @@ PJ_DEF(int) pj_thread_get_prio_max(pj_thread_t *thread) #if defined _POSIX_PRIORITY_SCHEDULING return sched_get_priority_max(policy); #elif defined __OpenBSD__ - /* OpenBSD doesn't have sched_get_priority_min/_max */ - return 0; + /* Thread prio min/max are declared in OpenBSD private hdr */ + return 31; #else pj_assert("pj_thread_get_prio_max() not supported!"); return 0; |