make it more likely that debug messages are printed without x-thread interruption
This commit is contained in:
parent
5e13770e1f
commit
cd2618246a
|
@ -100,9 +100,10 @@ void
|
||||||
PBD::debug_print (const char* prefix, string str)
|
PBD::debug_print (const char* prefix, string str)
|
||||||
{
|
{
|
||||||
if ((PBD::debug_bits & DEBUG::DebugTimestamps).any()) {
|
if ((PBD::debug_bits & DEBUG::DebugTimestamps).any()) {
|
||||||
cout << g_get_monotonic_time() << ' ';
|
printf ("%ld %s: %s", g_get_monotonic_time(), prefix, str.c_str());
|
||||||
|
} else {
|
||||||
|
printf ("%s: %s", prefix, str.c_str());
|
||||||
}
|
}
|
||||||
cout << prefix << ": " << str;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user