X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fpbd%2Fbase_ui.cc;h=f22d83264ef08b1c5d4519bd06f16d3ea79c1e71;hb=659701c59b76bdcbfcf5c1b8ce8962eb3f6a1ca2;hp=09dfa74785c303c1723c3203303c2e2d80bf68f1;hpb=22b07e0233a29d9633ffa825a79503befaf2e16e;p=ardour.git diff --git a/libs/pbd/base_ui.cc b/libs/pbd/base_ui.cc index 09dfa74785..f22d83264e 100644 --- a/libs/pbd/base_ui.cc +++ b/libs/pbd/base_ui.cc @@ -35,7 +35,7 @@ #include "pbd/compose.h" #include "pbd/failed_constructor.h" -#include "i18n.h" +#include "pbd/i18n.h" #include "pbd/debug.h" @@ -47,10 +47,10 @@ uint64_t BaseUI::rt_bit = 1; BaseUI::RequestType BaseUI::CallSlot = BaseUI::new_request_type(); BaseUI::RequestType BaseUI::Quit = BaseUI::new_request_type(); -BaseUI::BaseUI (const string& str) - : m_context(MainContext::get_default()) +BaseUI::BaseUI (const string& loop_name) + : EventLoop (loop_name) + , m_context(MainContext::get_default()) , run_loop_thread (0) - , _name (str) , request_channel (true) { base_ui_instance = this; @@ -79,7 +79,7 @@ BaseUI::new_request_type () void BaseUI::main_thread () { - DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: event loop running in thread %2\n", name(), pthread_name())); + DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: event loop running in thread %2\n", event_loop_name(), pthread_name())); set_event_loop_for_thread (this); thread_init (); _main_loop->get_context()->signal_idle().connect (sigc::mem_fun (*this, &BaseUI::signal_running)); @@ -137,7 +137,7 @@ BaseUI::request_handler (Glib::IOCondition ioc) /* handle requests */ - DEBUG_TRACE (DEBUG::EventLoop, "BaseUI::request_handler\n"); + DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: request handler\n", event_loop_name())); handle_ui_requests (); } @@ -147,7 +147,7 @@ BaseUI::request_handler (Glib::IOCondition ioc) void BaseUI::signal_new_request () { - DEBUG_TRACE (DEBUG::EventLoop, "BaseUI::signal_new_request\n"); + DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: signal_new_request\n", event_loop_name())); request_channel.wakeup (); } @@ -157,6 +157,6 @@ BaseUI::signal_new_request () void BaseUI::attach_request_source () { - DEBUG_TRACE (DEBUG::EventLoop, "BaseUI::attach_request_source\n"); + DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: attach request source\n", event_loop_name())); request_channel.attach (m_context); }