eventloop and abstractui debugging, lots more commenting on abstractui/eventloop...
[ardour.git] / libs / pbd / base_ui.cc
index e3b34a6df2638356a414748671a9a629aeaac440..6c21549e8beb64e85f47b0631f96c2b8ef6fe68c 100644 (file)
@@ -25,6 +25,7 @@
 #include <cstring>
 
 #include "pbd/base_ui.h"
+#include "pbd/debug.h"
 #include "pbd/pthread_utils.h"
 #include "pbd/error.h"
 #include "pbd/compose.h"
@@ -72,11 +73,10 @@ BaseUI::new_request_type ()
 void
 BaseUI::main_thread ()
 {
+       DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: event loop running in thread %2\n", name(), pthread_self()));
        set_event_loop_for_thread (this);
        thread_init ();
-       std::cerr << pthread_self() << ' ' << _name << " running event loop\n";
        _main_loop->run ();
-       std::cerr << pthread_self() << ' ' << _name << " event loop finished\n";
 }
 
 void