mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
fixes for win32 due to changes in how s_restartable is handled.
the main change is that WM_QUIT now causes the thread to be cancelled instead of mainLoop() just returning. this also requires runDaemon() to call the run function in a new thread each time it calls it because it could can cancelled.
This commit is contained in:
@@ -194,7 +194,7 @@ CMSWindowsScreen::mainLoop()
|
||||
|
||||
// handle quit message
|
||||
if (event.m_msg.message == WM_QUIT) {
|
||||
break;
|
||||
CThread::getCurrentThread().cancel();
|
||||
}
|
||||
|
||||
// dispatch message
|
||||
|
||||
Reference in New Issue
Block a user