Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / ace / Monitor_Control / Auto_Update_Starter.cpp
blobad603b39aa128f3de9d891b1156209c7510f8490
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
11 namespace ACE
13 namespace Monitor_Control
15 Auto_Update_Starter::Auto_Update_Starter ()
19 int
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
27 /// aren't triggerd.
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 */