[icinga-checkins] icinga.org: icinga2/master: Bugfix: Set main EventQueue' s owner as early as possible.

git at icinga.org git at icinga.org
Fri Feb 15 09:59:52 CET 2013


Module: icinga2
Branch: master
Commit: 4e03b916ffc7f26cf03800c689842504429169e4
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=4e03b916ffc7f26cf03800c689842504429169e4

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Feb 15 09:58:38 2013 +0100

Bugfix: Set main EventQueue's owner as early as possible.

---

 lib/base/application.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/base/application.cpp b/lib/base/application.cpp
index bdcd040..b9e944f 100644
--- a/lib/base/application.cpp
+++ b/lib/base/application.cpp
@@ -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);
 }
 
 /**





More information about the icinga-checkins mailing list