From 4fca28db3dae8cbaa3af3ddc2116875b8f3abe91 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 9 Oct 2007 12:18:40 +0000 Subject: [PATCH] Fix bugs in Windows screensaver svn path=/trunk/boinc/; revision=13805 --- clientscr/screensaver.cpp | 2 -- clientscr/screensaver_win.cpp | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/clientscr/screensaver.cpp b/clientscr/screensaver.cpp index 03aeffaa4e..326f6f43d9 100644 --- a/clientscr/screensaver.cpp +++ b/clientscr/screensaver.cpp @@ -305,8 +305,6 @@ void *CScreensaver::DataManagementProc() { double last_change_time = 0.0; double last_run_check_time = 0.0; #ifdef _WIN32 - time_t m_tThreadCreateTime = 0; - BOINCTRACE(_T("CScreensaver::DataManagementProc - Display screen saver loading message\n")); SetError(TRUE, SCRAPPERR_BOINCSCREENSAVERLOADING); m_tThreadCreateTime = time(0); diff --git a/clientscr/screensaver_win.cpp b/clientscr/screensaver_win.cpp index aae68b70ba..df2f8d31b3 100755 --- a/clientscr/screensaver_win.cpp +++ b/clientscr/screensaver_win.cpp @@ -1010,10 +1010,11 @@ BOOL CScreensaver::DestroyDataManagementThread() { m_QuitDataManagementProc = TRUE; // Tell RPC Thread to exit // Wait up to 5 seconds for DataManagementThread to exit - for (int i=0; i< 20; i++) { + for (int i=0; i<50; i++) { DWORD dwStatus = STILL_ACTIVE; BOOL bRetVal = FALSE; - + + boinc_sleep(0.1); bRetVal = GetExitCodeThread(m_hDataManagementThread, &dwStatus); BOINCTRACE(_T("CScreensaver::DestroyDataManagementThread - GetExitCodeThread RetVal = '%d', Status = '%d'\n"), bRetVal, dwStatus); if (bRetVal && (dwStatus != STILL_ACTIVE)) {