From 5f7421b9460cc69d17a3e736b5037c235114c601 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 18 Apr 2022 11:52:22 +0200 Subject: [PATCH] jack: remove some pthread attributes JOINABLE and SCOPE_SYSTEM are defaults. EXPLICIT_SCHED is not needed and causes qemu with resourcecontrol to fail. Fixes #2297 --- pipewire-jack/src/pipewire-jack.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index 1ac4b98d0..cc2fc666f 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -2511,9 +2511,6 @@ static struct spa_thread *impl_create(void *object, pthread_attr_t attributes; pthread_attr_init(&attributes); - CHECK(pthread_attr_setdetachstate(&attributes, PTHREAD_CREATE_JOINABLE), error); - CHECK(pthread_attr_setscope(&attributes, PTHREAD_SCOPE_SYSTEM), error); - CHECK(pthread_attr_setinheritsched(&attributes, PTHREAD_EXPLICIT_SCHED), error); CHECK(pthread_attr_setstacksize(&attributes, THREAD_STACK), error); res = -globals.creator(&pt, &attributes, start, arg); @@ -2523,7 +2520,7 @@ static struct spa_thread *impl_create(void *object, goto error; thr = (struct spa_thread*)pt; } else { - thr = spa_thread_utils_create(c->context.old_thread_utils, NULL, start, arg); + thr = spa_thread_utils_create(c->context.old_thread_utils, props, start, arg); } return thr; error: