From dcd79f313546aba447243f77ff143d48cd407bd3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 28 Sep 2024 03:05:10 +0200 Subject: [PATCH] Debug Backend thread creation --- libs/pbd/pthread_utils.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/pbd/pthread_utils.cc b/libs/pbd/pthread_utils.cc index 43423851d5..9655665988 100644 --- a/libs/pbd/pthread_utils.cc +++ b/libs/pbd/pthread_utils.cc @@ -266,6 +266,7 @@ pbd_pthread_create ( if (stacksize > 0) { pthread_attr_setstacksize (&attr, stacksize + pbd_stack_size ()); } + DEBUG_TRACE (PBD::DEBUG::Threads, string_compose ("Start Non-RT Thread stacksize = 0x%1%2\n", std::hex, stacksize)); rv = pthread_create (thread, &attr, start_routine, arg); pthread_attr_destroy (&attr); return rv; @@ -363,6 +364,7 @@ pbd_realtime_pthread_create ( if (stacksize > 0) { pthread_attr_setstacksize (&attr, stacksize + pbd_stack_size ()); } + DEBUG_TRACE (PBD::DEBUG::Threads, string_compose ("Start Realtime Thread policy = %1 priority = %2 stacksize = 0x%3%4\n", policy, priority, std::hex, stacksize)); rv = pthread_create (thread, &attr, start_routine, arg); pthread_attr_destroy (&attr); return rv;