diff options
author | Chris Robinson <[email protected]> | 2011-06-23 15:42:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-23 15:42:35 -0700 |
commit | f6d1e0f299f3f572b8cd266a39b2c118bc594240 (patch) | |
tree | 7b970da52e8e59ed915cc29ef87c76d5fcdbb2f5 | |
parent | e42bdc202266c69dc6bc82044e44b14be1ce9c49 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |