13
0

Debug Backend thread creation

This commit is contained in:
Robin Gareus 2024-09-28 03:05:10 +02:00
parent aeb4f925c6
commit dcd79f3135
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -266,6 +266,7 @@ pbd_pthread_create (
if (stacksize > 0) { if (stacksize > 0) {
pthread_attr_setstacksize (&attr, stacksize + pbd_stack_size ()); 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); rv = pthread_create (thread, &attr, start_routine, arg);
pthread_attr_destroy (&attr); pthread_attr_destroy (&attr);
return rv; return rv;
@ -363,6 +364,7 @@ pbd_realtime_pthread_create (
if (stacksize > 0) { if (stacksize > 0) {
pthread_attr_setstacksize (&attr, stacksize + pbd_stack_size ()); 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); rv = pthread_create (thread, &attr, start_routine, arg);
pthread_attr_destroy (&attr); pthread_attr_destroy (&attr);
return rv; return rv;