Introduced OpenThreads::Affinity support into osg::Camera, osg::GraphicsContext::Traitse, osgDB::DatabasePager and osgViewer::ViewerBase/Viewer/CompositeViewer.
Added ViewerBase::configureAffinity() to help with the setting of the affinity of camera, graphics context and pager threads
This commit is contained in:
@@ -1190,7 +1190,7 @@ DatabasePager::DatabasePager(const DatabasePager& rhs)
|
||||
_databaseThreads.push_back(new DatabaseThread(**dt_itr,this));
|
||||
}
|
||||
|
||||
setProcessorAffinty(rhs.getProcessorAffinty());
|
||||
setProcessorAffinity(rhs.getProcessorAffinity());
|
||||
|
||||
_activePagedLODList = rhs._activePagedLODList->clone();
|
||||
|
||||
@@ -1249,7 +1249,7 @@ DatabasePager* DatabasePager::create()
|
||||
new DatabasePager;
|
||||
}
|
||||
|
||||
void DatabasePager::setProcessorAffinty(const OpenThreads::Affinity& affinity)
|
||||
void DatabasePager::setProcessorAffinity(const OpenThreads::Affinity& affinity)
|
||||
{
|
||||
_affinity = affinity;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user