13
0

make it more likely that debug messages are printed without x-thread interruption

This commit is contained in:
Paul Davis 2019-10-29 22:07:18 -06:00
parent 5e13770e1f
commit cd2618246a

View File

@ -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