mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Debug Backend thread creation
This commit is contained in:
parent
aeb4f925c6
commit
dcd79f3135
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue