Added missing lock() call.

This commit is contained in:
Gunnar Beutner 2013-02-14 18:48:31 +01:00
parent 8f2ce8e703
commit 8e672167dc
1 changed files with 4 additions and 1 deletions

View File

@ -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);