EverWrath/deps/acelite/ace/Monitor_Control/Auto_Update_Starter.cpp
Yehonal f06f32849f Directory Structure [step 1]: moving files
working on #672

NOTE: This commit can't be compiled!!
2017-10-12 20:00:52 +02:00

37 lines
909 B
C++

#include "ace/Monitor_Control/Auto_Update_Starter.h"
#if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
#include "ace/Reactor.h"
#include "ace/Dynamic_Service.h"
#include "ace/Monitor_Admin_Manager.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace Monitor_Control
{
Auto_Update_Starter::Auto_Update_Starter (void)
{
}
int
Auto_Update_Starter::svc (void)
{
MC_ADMINMANAGER* mgr =
ACE_Dynamic_Service<MC_ADMINMANAGER>::instance ("MC_ADMINMANAGER");
/// We want the thread in which the event loop is started to
/// own the reactor, otherwise the handle_timeout() calls
/// aren't triggerd.
mgr->admin ().reactor ()->owner (ACE_Thread::self ());
return mgr->admin ().reactor ()->run_reactor_event_loop ();
}
}
}
ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */