13
0
livetrax/libs/pbd/event_loop.cc
Paul Davis f450df300c fully implement and deploy explicit x-thread signal connection syntax (testing comes next)
git-svn-id: svn://localhost/ardour2/branches/3.0@6379 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-21 18:23:07 +00:00

20 lines
390 B
C++

#include "pbd/event_loop.h"
using namespace PBD;
Glib::StaticPrivate<EventLoop> EventLoop::thread_event_loop;
static void do_not_delete_the_loop_pointer (void*) { }
EventLoop*
EventLoop::get_event_loop_for_thread() {
return thread_event_loop.get ();
}
void
EventLoop::set_event_loop_for_thread (EventLoop* loop)
{
thread_event_loop.set (loop, do_not_delete_the_loop_pointer);
}