From 40e38a1645cf01550667fd8ee0d11c014dc953be Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 21 Jul 2003 15:51:43 +0000 Subject: [PATCH] Added yield call to database paging main loop. --- src/osgDB/DatabasePager.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 784f32532..d95b77cf3 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -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();