added some hacky sleeps to temporarily fix some thread timing issues (causing access violations). the best fix would be to use wait cond vars, but first we need to really understand the bug.

This commit is contained in:
Nick Bolton 2013-09-16 15:21:36 +00:00
parent 6f982a501a
commit 760e38eeba
8 changed files with 34 additions and 25 deletions

View file

@ -1691,8 +1691,13 @@ COSXScreen::watchSystemPowerThread(void*)
return;
}
// start the run loop
LOG((CLOG_DEBUG "started watchSystemPowerThread"));
// HACK: sleep, this seem to stop synergy from freezing.
ARCH->sleep(1);
// start the run loop
LOG((CLOG_DEBUG "starting carbon loop"));
CFRunLoopRun();
// cleanup