[icinga-checkins] icinga.org: icinga2/master: Added missing lock() call.

git at icinga.org git at icinga.org
Thu Feb 14 18:48:41 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Feb 14 18:48:31 2013 +0100

Added missing lock() call.

---

 lib/base/event.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/base/event.cpp b/lib/base/event.cpp
index b536ebe..37476b4 100644
--- a/lib/base/event.cpp
+++ b/lib/base/event.cpp
@@ -52,8 +52,11 @@ void Event::ProcessEvents(millisec timeout)
 		boost::mutex::scoped_lock lock(m_Mutex);
 
 		while (m_Events.empty()) {
-			if (!m_EventAvailable.timed_wait(lock, timeout))
+			if (!m_EventAvailable.timed_wait(lock, timeout)) {
+				Application::GetMutex().lock();
+
 				return;
+			}
 		}
 
 		events.swap(m_Events);





More information about the icinga-checkins mailing list