Changeset 8437

Show
Ignore:
Timestamp:
06/16/08 15:20:51 (6 years ago)
Author:
robert
Message:

Added mutex to serialize access to the trpager

Location:
OpenSceneGraph/trunk/src/osgPlugins/txp
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/txp/TXPNode.cpp

    r8372 r8437  
    9191    case osg::NodeVisitor::CULL_VISITOR: 
    9292    { 
     93 
     94        OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); 
    9395                 
    9496        osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(&nv); 
     
    133135    } 
    134136    case osg::NodeVisitor::UPDATE_VISITOR: 
     137    { 
     138        OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); 
     139 
    135140        updateSceneGraph(); 
    136141        break; 
     142    } 
    137143    default: 
    138144        break; 
  • OpenSceneGraph/trunk/src/osgPlugins/txp/TXPNode.h

    r8372 r8437  
    9494    std::string                     _options; 
    9595     
     96    OpenThreads::Mutex              _mutex; 
     97     
    9698    osg::ref_ptr<TXPArchive>        _archive; 
    9799    osg::ref_ptr<TXPPageManager>    _pageManager;