mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-18 08:57:39 +02:00
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:
parent
6f982a501a
commit
760e38eeba
8 changed files with 34 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue