1 #include "ace/Monitor_Control/Auto_Update_Starter.h"
3 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
5 #include "ace/Reactor.h"
6 #include "ace/Dynamic_Service.h"
7 #include "ace/Monitor_Admin_Manager.h"
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
13 namespace Monitor_Control
15 Auto_Update_Starter::Auto_Update_Starter ()
20 Auto_Update_Starter::svc ()
22 MC_ADMINMANAGER
* mgr
=
23 ACE_Dynamic_Service
<MC_ADMINMANAGER
>::instance ("MC_ADMINMANAGER");
25 /// We want the thread in which the event loop is started to
26 /// own the reactor, otherwise the handle_timeout() calls
28 mgr
->admin ().reactor ()->owner (ACE_Thread::self ());
30 return mgr
->admin ().reactor ()->run_reactor_event_loop ();
35 ACE_END_VERSIONED_NAMESPACE_DECL
37 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */