Moved OpenThreads::Threads::Yield() calls across to new

OpenThreads::Threads::YieldCurrentThread() naming.
This commit is contained in:
Robert Osfield 2003-08-21 09:52:12 +00:00
parent 7b9de3ad91
commit e46d1cf941
2 changed files with 5 additions and 7 deletions

View File

@ -33,8 +33,7 @@ DatabasePager::~DatabasePager()
while(isRunning()) while(isRunning())
{ {
std::cout<<"Waiting for RenderSurface to cancel"<<std::endl; std::cout<<"Waiting for RenderSurface to cancel"<<std::endl;
//OpenThreads::Thread::YieldCurrentThread(); OpenThreads::Thread::YieldCurrentThread();
OpenThreads::Thread::Yield();
} }
} }
@ -285,7 +284,7 @@ void DatabasePager::run()
} }
// go to sleep till our the next time our thread gets scheduled. // go to sleep till our the next time our thread gets scheduled.
Yield(); YieldCurrentThread();
} }

View File

@ -158,8 +158,7 @@ bool OSGPageManager::EndThread()
while(pagingThread.isRunning()) while(pagingThread.isRunning())
{ {
std::cout<<"Waiting for TXP pager thread to cancel"<<std::endl; std::cout<<"Waiting for TXP pager thread to cancel"<<std::endl;
//OpenThreads::Thread::YieldCurrentThread(); OpenThreads::Thread::YieldCurrentThread();
OpenThreads::Thread::Yield();
} }
} }
@ -279,7 +278,7 @@ bool OSGPageManager::ThreadLoop(PagingThread* t)
// Now add this tile to the merge list // Now add this tile to the merge list
pageManage->AckLoad(); pageManage->AckLoad();
//OpenThreads::Thread::Yield(); //OpenThreads::Thread::YieldCurrentThread();
} }
@ -287,7 +286,7 @@ bool OSGPageManager::ThreadLoop(PagingThread* t)
} }
else else
{ {
OpenThreads::Thread::Yield(); OpenThreads::Thread::YieldCurrentThread();
} }
} while (!t->testCancel()); } while (!t->testCancel());