Fix bugs in Windows screensaver

svn path=/trunk/boinc/; revision=13805
This commit is contained in:
Charlie Fenton 2007-10-09 12:18:40 +00:00
parent 3bfc78b511
commit 4fca28db3d
2 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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)) {