Tweaks from using a ReadWriteMutex& to a ReadWriteMutex* parameter to avoid

problems with osgIntrospection generation.
This commit is contained in:
Robert Osfield
2006-12-27 23:19:17 +00:00
parent b2a0b50a5a
commit 11fef2d75e
4 changed files with 6 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ void osgParticle::ParticleSystemUpdater::traverse(osg::NodeVisitor& nv)
{
ParticleSystem* ps = i->get();
osgDB::ScopedWriteLock lock(ps->getReadWriteMutex());
osgDB::ScopedWriteLock lock(*(ps->getReadWriteMutex()));
if (!ps->isFrozen() && (ps->getLastFrameNumber() >= (nv.getFrameStamp()->getFrameNumber() - 1) || !ps->getFreezeOnCull()))
{