]> granicus.if.org Git - icinga2/commitdiff
Bugfix: Set main EventQueue's owner as early as possible.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 15 Feb 2013 08:58:38 +0000 (09:58 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 15 Feb 2013 08:58:38 +0000 (09:58 +0100)
lib/base/application.cpp

index bdcd040fd86576669ff2c3140bf67edac6fdb13a..b9e944f3b0f39f801fbf08a3f986b557cd2a9009 100644 (file)
@@ -139,8 +139,6 @@ void Application::RunEventLoop(void) const
 {
        boost::mutex::scoped_lock lock(m_Mutex);
 
-       GetEQ().SetOwner(boost::this_thread::get_id());
-
 #ifdef _DEBUG
        double nextProfile = 0;
 #endif /* _DEBUG */
@@ -320,6 +318,7 @@ bool Application::IsMainThread(void)
 void Application::SetMainThread(void)
 {
        m_MainThreadID = boost::this_thread::get_id();
+       m_EQ.SetOwner(m_MainThreadID);
 }
 
 /**