mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-04 02:46:17 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user