From 9feaa959f143e5752093b50c81dacdeaa7ac3748 Mon Sep 17 00:00:00 2001 From: jerry Date: Mon, 2 Jun 2014 11:04:09 +0000 Subject: [PATCH] issue #4072 - Carboon loop not ready within 5 sec issue solved --- src/lib/base/EventQueue.cpp | 2 +- src/lib/platform/OSXScreen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/base/EventQueue.cpp b/src/lib/base/EventQueue.cpp index b12c0736..636f643e 100644 --- a/src/lib/base/EventQueue.cpp +++ b/src/lib/base/EventQueue.cpp @@ -107,7 +107,7 @@ CEventQueue::loop() { m_buffer->init(); *m_readyCondVar = true; - m_readyCondVar->broadcast(); + m_readyCondVar->signal(); LOG((CLOG_DEBUG "event queue is ready")); while (!m_pending.empty()) { diff --git a/src/lib/platform/OSXScreen.cpp b/src/lib/platform/OSXScreen.cpp index cea383f3..0fa8a469 100644 --- a/src/lib/platform/OSXScreen.cpp +++ b/src/lib/platform/OSXScreen.cpp @@ -1703,7 +1703,7 @@ COSXScreen::watchSystemPowerThread(void*) #if defined(MAC_OS_X_VERSION_10_7) if (*m_carbonLoopReady == false) { *m_carbonLoopReady = true; - m_carbonLoopReady->broadcast(); + m_carbonLoopReady->signal(); } #endif