X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fevent_loop.h;h=b5ee9b80000785accf2475f5aa13b9ef1ae675a5;hb=54bf06e63cee78dfa218f604d862e577d0f5754c;hp=6e7e42e9dd1a50fd164c01f870701cd6a77fda22;hpb=8a8552c4cb7c6ea6aa30675ab4fa39bae86a18cf;p=ardour.git diff --git a/libs/pbd/pbd/event_loop.h b/libs/pbd/pbd/event_loop.h index 6e7e42e9dd..b5ee9b8000 100644 --- a/libs/pbd/pbd/event_loop.h +++ b/libs/pbd/pbd/event_loop.h @@ -22,11 +22,20 @@ #include #include /* we don't need this here, but anything calling call_slot() probably will, so this is convenient */ -#include +#include namespace PBD { +/** An EventLoop is as basic abstraction designed to be used with any "user + * interface" (not necessarily graphical) that needs to wait on + * events/requests and dispatch/process them as they arrive. + * + * This is a very basic class that doesn't by itself provide an actual + * event loop or thread. See BaseUI for the "real" object to be used + * when something like this is needed (it inherits from EventLoop). + */ + class EventLoop { public: @@ -60,13 +69,13 @@ class EventLoop }; virtual void call_slot (InvalidationRecord*, const boost::function&) = 0; - virtual Glib::Mutex& slot_invalidation_mutex() = 0; + virtual Glib::Threads::Mutex& slot_invalidation_mutex() = 0; static EventLoop* get_event_loop_for_thread(); static void set_event_loop_for_thread (EventLoop* ui); private: - static Glib::StaticPrivate thread_event_loop; + static Glib::Threads::Private thread_event_loop; };