summaryrefslogtreecommitdiff
path: root/libjack/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'libjack/thread.c')
-rw-r--r--libjack/thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjack/thread.c b/libjack/thread.c
index 12cba34..bf55cf5 100644
--- a/libjack/thread.c
+++ b/libjack/thread.c
@@ -152,7 +152,11 @@ jack_client_create_thread (jack_client_t* client,
log_result("requesting joinable thread creation", result);
return result;
}
+#ifdef __OpenBSD__
+ result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS);
+#else
result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
+#endif
if (result) {
log_result("requesting system scheduling scope", result);
return result;