Revision: 8600
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8600&view=rev
Author:   hsujohnhsu
Date:     2010-03-24 04:05:49 +0000 (Wed, 24 Mar 2010)

Log Message:
-----------
another race condition on model spawn.

Modified Paths:
--------------
    code/gazebo/trunk/server/rendering/OgreCreator.cc

Modified: code/gazebo/trunk/server/rendering/OgreCreator.cc
===================================================================
--- code/gazebo/trunk/server/rendering/OgreCreator.cc   2010-03-24 01:52:27 UTC 
(rev 8599)
+++ code/gazebo/trunk/server/rendering/OgreCreator.cc   2010-03-24 04:05:49 UTC 
(rev 8600)
@@ -689,6 +689,8 @@
     {
       if (viter->second)
       {
+        // lock in case the visual is being dynamically destroyed
+        boost::recursive_mutex::scoped_lock 
lock(*Simulator::Instance()->GetMDMutex());
         if (!viter->second->IsDirty())
           continue;
         viter->second->SetToDirtyPose();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to