24 #include <aspect/inifins/mainloop.h>
25 #include <aspect/mainloop.h>
26 #include <aspect/mainloop/employer.h>
27 #include <aspect/blocked_timing/executor.h>
28 #include <core/threading/thread_finalizer.h>
48 __employer = employer;
58 if (mainloop_thread == NULL) {
60 "MainLoopAspect, but RTTI says it "
61 "has not. ", thread->
name());
66 "in wait-for-wakeup mode.");
70 __mainloop_uc.
add(mainloop_thread);
86 if (mainloop_thread == NULL) {
88 "MainLoopAspect, but RTTI says it "
89 "has not. ", thread->
name());
94 __mainloop_uc.
remove(mainloop_thread);
107 if ( (mainloop_thread = dynamic_cast<MainLoopAspect *>(thread)) != NULL ) {
109 __employer->set_mainloop_thread(thread);
124 if ( (mainloop_thread = dynamic_cast<MainLoopAspect *>(thread)) != NULL ) {
126 __mainloop_uc.remove(mainloop_thread);