Added yield call to database paging main loop.

This commit is contained in:
Robert Osfield
2003-07-21 15:51:43 +00:00
parent 5ff7e4bacb
commit 40e38a1645

View File

@@ -260,12 +260,15 @@ void DatabasePager::run()
}
// hack hack hack... sleep for 1ms so we give other threads a chance..
#ifdef WIN32
Sleep(1);
#else
usleep(1000);
#endif
// // hack hack hack... sleep for 1ms so we give other threads a chance..
// #ifdef WIN32
// Sleep(1);
// #else
// usleep(1000);
// #endif
yield();
}
cancel();