portable pthread_self() debug message
authorRobin Gareus <robin@gareus.org>
Sun, 13 Dec 2015 10:28:56 +0000 (11:28 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 13 Dec 2015 10:28:56 +0000 (11:28 +0100)
libs/pbd/pbd/abstract_ui.cc

index 201e50d9d766e64f862e18bf5a7173e2a97b04c7..d3d3c2e8b10c82c758c53f905f6d1c243e32e6fb 100644 (file)
@@ -83,7 +83,7 @@ AbstractUI<RequestObject>::register_thread (string target_gui, pthread_t thread_
         * do so in a realtime-safe manner (no locks).
         */
 
-       DEBUG_TRACE (PBD::DEBUG::AbstractUI, string_compose ("in %1 (thread name %4), %2 (%5) wants to register with %3\n", event_loop_name(), thread_name, target_gui, pthread_name(), pthread_self()));
+       DEBUG_TRACE (PBD::DEBUG::AbstractUI, string_compose ("in %1 (thread name %4), %2 (%5) wants to register with %3\n", event_loop_name(), thread_name, target_gui, pthread_name(), DEBUG_THREAD_SELF));
 
        if (target_gui != event_loop_name()) {
                /* this UI is not the UI that the calling thread is trying to