From f369f339555e5700c5edd13b351c22fa1a91bb4b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 12 Dec 2015 10:55:40 -0500 Subject: move BaseUI::_name into EventLoop; rename access method in EventLoop as event_loop_name() to clarify usage --- libs/pbd/pbd/event_loop.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libs/pbd/pbd/event_loop.h') diff --git a/libs/pbd/pbd/event_loop.h b/libs/pbd/pbd/event_loop.h index a100365497..3ea6388f3f 100644 --- a/libs/pbd/pbd/event_loop.h +++ b/libs/pbd/pbd/event_loop.h @@ -20,6 +20,7 @@ #ifndef __pbd_event_loop_h__ #define __pbd_event_loop_h__ +#include #include #include /* we don't need this here, but anything calling call_slot() probably will, so this is convenient */ #include @@ -41,7 +42,7 @@ namespace PBD class LIBPBD_API EventLoop { public: - EventLoop() {} + EventLoop (std::string const&); virtual ~EventLoop() {} enum RequestType { @@ -73,12 +74,14 @@ class LIBPBD_API EventLoop virtual void call_slot (InvalidationRecord*, const boost::function&) = 0; virtual Glib::Threads::Mutex& slot_invalidation_mutex() = 0; + std::string event_loop_name() const { return _name; } + static EventLoop* get_event_loop_for_thread(); static void set_event_loop_for_thread (EventLoop* ui); private: static Glib::Threads::Private thread_event_loop; - + std::string _name; }; } -- cgit v1.2.3