X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=common%2Fosdep.h;h=96596b7d7dd33d99b006510f0d524ad86a34cf51;hb=39af8c72e618a544baa06ae427fb2b440861abcd;hp=a94c52507c3be09df779da04068b716a47f60ed6;hpb=59683a97b50b34c6282457a959bb6b3e9e7f8c0d;p=x264 diff --git a/common/osdep.h b/common/osdep.h index a94c5250..96596b7d 100644 --- a/common/osdep.h +++ b/common/osdep.h @@ -369,6 +369,10 @@ static ALWAYS_INLINE void x264_prefetch( void *p ) sp.sched_priority -= p;\ pthread_setschedparam( handle, policy, &sp );\ } +#elif SYS_HAIKU +#include +#define x264_lower_thread_priority(p)\ + { UNUSED status_t nice_ret = set_thread_priority( find_thread( NULL ), B_LOW_PRIORITY ); } #else #include #define x264_lower_thread_priority(p) { UNUSED int nice_ret = nice(p); }