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:
crs
2002-07-24 19:26:18 +00:00
parent 2e6e8e179a
commit 63b1d4397a
3 changed files with 17 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ CMSWindowsScreen::mainLoop()
// handle quit message
if (event.m_msg.message == WM_QUIT) {
break;
CThread::getCurrentThread().cancel();
}
// dispatch message