mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-30 22:59:41 +02:00
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:
parent
0d087d4edc
commit
45c1cde698
10 changed files with 126 additions and 25 deletions
|
@ -798,8 +798,10 @@ CServerApp::mainLoop()
|
|||
this, &CServerApp::runEventsLoop,
|
||||
NULL));
|
||||
|
||||
// HACK: sleep, allow queue to start.
|
||||
ARCH->sleep(1);
|
||||
// wait until carbon loop is ready
|
||||
COSXScreen* screen = dynamic_cast<COSXScreen*>(
|
||||
s_serverScreen->getPlatformScreen());
|
||||
screen->waitForCarbonLoop();
|
||||
|
||||
runCocoaApp();
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue