2 #include "pbd/event_loop.h"
3 #include "pbd/stacktrace.h"
8 Glib::StaticPrivate
<EventLoop
> EventLoop::thread_event_loop
;
10 static void do_not_delete_the_loop_pointer (void*) { }
13 EventLoop::get_event_loop_for_thread() {
14 return thread_event_loop
.get ();
18 EventLoop::set_event_loop_for_thread (EventLoop
* loop
)
20 thread_event_loop
.set (loop
, do_not_delete_the_loop_pointer
);
23 /** Called when a sigc::trackable that was connected to using the invalidator() macro
27 EventLoop::invalidate_request (void* data
)
29 InvalidationRecord
* ir
= (InvalidationRecord
*) data
;
32 Glib::Mutex::Lock
lm (ir
->event_loop
->slot_invalidation_mutex());
33 for (list
<BaseRequestObject
*>::iterator i
= ir
->requests
.begin(); i
!= ir
->requests
.end(); ++i
) {
35 (*i
)->invalidation
= 0;