fixed: events were added before event queue was ready, caused debug build assert failure.

removed sleep hack in favour of cond var wait.
This commit is contained in:
jerry
2014-04-17 10:56:25 +00:00
parent 0d087d4edc
commit 45c1cde698
10 changed files with 126 additions and 25 deletions

View File

@@ -548,8 +548,10 @@ CClientApp::mainLoop()
this, &CClientApp::runEventsLoop,
NULL));
// HACK: sleep, allow queue to start.
ARCH->sleep(1);
// wait until carbon loop is ready
COSXScreen* screen = dynamic_cast<COSXScreen*>(
s_clientScreen->getPlatformScreen());
screen->waitForCarbonLoop();
runCocoaApp();
#else