summaryrefslogtreecommitdiff
path: root/libs/pbd/base_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-12-12 10:55:40 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-12-12 11:12:10 -0500
commitf369f339555e5700c5edd13b351c22fa1a91bb4b (patch)
treee2b09f9f43d05d37a25f85f6416882e3724259ff /libs/pbd/base_ui.cc
parent6b00ff6198210ac3f7e11d9758f4af1962961f1d (diff)
move BaseUI::_name into EventLoop; rename access method in EventLoop as event_loop_name() to clarify usage
Diffstat (limited to 'libs/pbd/base_ui.cc')
-rw-r--r--libs/pbd/base_ui.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/pbd/base_ui.cc b/libs/pbd/base_ui.cc
index 09dfa74785..c56fb8f4fe 100644
--- a/libs/pbd/base_ui.cc
+++ b/libs/pbd/base_ui.cc
@@ -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));