Revision: 8926
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8926&view=rev
Author:   hsujohnhsu
Date:     2010-10-01 18:59:56 +0000 (Fri, 01 Oct 2010)

Log Message:
-----------
MR lock while Resetting world and model, prevent accidental modification of 
relative pose while reset happens.

Modified Paths:
--------------
    code/gazebo/branches/wg/server/Model.cc

Modified: code/gazebo/branches/wg/server/Model.cc
===================================================================
--- code/gazebo/branches/wg/server/Model.cc     2010-10-01 18:58:12 UTC (rev 
8925)
+++ code/gazebo/branches/wg/server/Model.cc     2010-10-01 18:59:56 UTC (rev 
8926)
@@ -593,6 +593,7 @@
 // Reset the model
 void Model::Reset()
 {
+  boost::recursive_mutex::scoped_lock 
lock(*Simulator::Instance()->GetMRMutex());
   JointContainer::iterator jiter;
   std::vector< Entity* >::iterator biter;
   std::map<std::string, Controller* >::iterator citer;


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

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to