summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-23 15:42:35 -0700
committerChris Robinson <[email protected]>2011-06-23 15:42:35 -0700
commitf6d1e0f299f3f572b8cd266a39b2c118bc594240 (patch)
tree7b970da52e8e59ed915cc29ef87c76d5fcdbb2f5
parente42bdc202266c69dc6bc82044e44b14be1ce9c49 (diff)
Avoid setting a thread priority for OpenBSD
It apparently causes a negative performance impact regardless of which values are set.
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 98335de4..b84aa6e0 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -717,7 +717,7 @@ void SetRTPriority(void)
failed = !SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
else
failed = !SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_NORMAL);
-#elif defined(HAVE_PTHREAD_SETSCHEDPARAM)
+#elif defined(HAVE_PTHREAD_SETSCHEDPARAM) && !defined(__OpenBSD__)
struct sched_param param;
if(RTPrioLevel > 0)