]> git.sesse.net Git - x264/blobdiff - common/osdep.h
Haiku support
[x264] / common / osdep.h
index a94c52507c3be09df779da04068b716a47f60ed6..96596b7d7dd33d99b006510f0d524ad86a34cf51 100644 (file)
@@ -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 <OS.h>
+#define x264_lower_thread_priority(p)\
+    { UNUSED status_t nice_ret = set_thread_priority( find_thread( NULL ), B_LOW_PRIORITY ); }
 #else
 #include <unistd.h>
 #define x264_lower_thread_priority(p) { UNUSED int nice_ret = nice(p); }