From babe286631cc590648968f1d91341b9e278adc78 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 18 Sep 2021 16:05:14 +0100 Subject: [PATCH] Use pthread_attr_setdetachstate when RT thread fails too Signed-off-by: falkTX --- source/utils/CarlaThread.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/utils/CarlaThread.hpp b/source/utils/CarlaThread.hpp index cae36ad3b..50a8a2545 100644 --- a/source/utils/CarlaThread.hpp +++ b/source/utils/CarlaThread.hpp @@ -137,6 +137,7 @@ public: { carla_stdout("CarlaThread with realtime priority failed on creation, going with normal priority instead"); pthread_attr_init(&attr); + pthread_attr_setdetachstate(&attr, 1); ok = pthread_create(&handle, &attr, _entryPoint, this) == 0; pthread_attr_destroy(&attr); }