X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..refs/heads/master:/bsd/pthread/pthread_priority.c diff --git a/bsd/pthread/pthread_priority.c b/bsd/pthread/pthread_priority.c index 05fef52c6..199c5db69 100644 --- a/bsd/pthread/pthread_priority.c +++ b/bsd/pthread/pthread_priority.c @@ -33,7 +33,7 @@ #define QOS_MIN_RELATIVE_PRIORITY -15 #endif -pthread_priority_t +pthread_priority_compact_t _pthread_priority_normalize(pthread_priority_t pp) { if (pp & _PTHREAD_PRIORITY_EVENT_MANAGER_FLAG) { @@ -52,7 +52,7 @@ _pthread_priority_normalize(pthread_priority_t pp) return _pthread_unspecified_priority(); } -pthread_priority_t +pthread_priority_compact_t _pthread_priority_normalize_for_ipc(pthread_priority_t pp) { if (_pthread_priority_has_qos(pp)) { @@ -66,7 +66,7 @@ _pthread_priority_normalize_for_ipc(pthread_priority_t pp) return _pthread_unspecified_priority(); } -pthread_priority_t +pthread_priority_compact_t _pthread_priority_combine(pthread_priority_t base_pp, thread_qos_t qos) { if (base_pp & _PTHREAD_PRIORITY_EVENT_MANAGER_FLAG) { @@ -75,10 +75,10 @@ _pthread_priority_combine(pthread_priority_t base_pp, thread_qos_t qos) if (base_pp & _PTHREAD_PRIORITY_FALLBACK_FLAG) { if (!qos) { - return base_pp; + return (pthread_priority_compact_t)base_pp; } } else if (qos < _pthread_priority_thread_qos(base_pp)) { - return base_pp; + return (pthread_priority_compact_t)base_pp; } return _pthread_priority_make_from_thread_qos(qos, 0,