Moved OpenThreads::Threads::Yield() calls across to new
OpenThreads::Threads::YieldCurrentThread() naming.
This commit is contained in:
parent
7b9de3ad91
commit
e46d1cf941
@ -33,8 +33,7 @@ DatabasePager::~DatabasePager()
|
||||
while(isRunning())
|
||||
{
|
||||
std::cout<<"Waiting for RenderSurface to cancel"<<std::endl;
|
||||
//OpenThreads::Thread::YieldCurrentThread();
|
||||
OpenThreads::Thread::Yield();
|
||||
OpenThreads::Thread::YieldCurrentThread();
|
||||
}
|
||||
|
||||
}
|
||||
@ -285,7 +284,7 @@ void DatabasePager::run()
|
||||
}
|
||||
|
||||
// go to sleep till our the next time our thread gets scheduled.
|
||||
Yield();
|
||||
YieldCurrentThread();
|
||||
|
||||
}
|
||||
|
||||
|
@ -158,8 +158,7 @@ bool OSGPageManager::EndThread()
|
||||
while(pagingThread.isRunning())
|
||||
{
|
||||
std::cout<<"Waiting for TXP pager thread to cancel"<<std::endl;
|
||||
//OpenThreads::Thread::YieldCurrentThread();
|
||||
OpenThreads::Thread::Yield();
|
||||
OpenThreads::Thread::YieldCurrentThread();
|
||||
}
|
||||
|
||||
}
|
||||
@ -279,7 +278,7 @@ bool OSGPageManager::ThreadLoop(PagingThread* t)
|
||||
// Now add this tile to the merge list
|
||||
pageManage->AckLoad();
|
||||
|
||||
//OpenThreads::Thread::Yield();
|
||||
//OpenThreads::Thread::YieldCurrentThread();
|
||||
|
||||
}
|
||||
|
||||
@ -287,7 +286,7 @@ bool OSGPageManager::ThreadLoop(PagingThread* t)
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenThreads::Thread::Yield();
|
||||
OpenThreads::Thread::YieldCurrentThread();
|
||||
}
|
||||
|
||||
} while (!t->testCancel());
|
||||
|
Loading…
Reference in New Issue
Block a user