Added yield call to database paging main loop.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user