Revision: 8894
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8894&view=rev
Author:   hsujohnhsu
Date:     2010-09-11 00:26:31 +0000 (Sat, 11 Sep 2010)

Log Message:
-----------
lock for all sensors.  This way image sensor generation is synchronized.  
sacrifice performance a little bit.

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

Modified: code/gazebo/branches/wg/server/rendering/OgreAdaptor.cc
===================================================================
--- code/gazebo/branches/wg/server/rendering/OgreAdaptor.cc     2010-09-10 
23:50:57 UTC (rev 8893)
+++ code/gazebo/branches/wg/server/rendering/OgreAdaptor.cc     2010-09-11 
00:26:31 UTC (rev 8894)
@@ -472,6 +472,7 @@
   // Draw all the non-user cameras
   {
     DIAGNOSTICTIMER(timer("UpdateCameras: Non-UserCamera update",6));
+    boost::recursive_mutex::scoped_lock 
mr_lock(*Simulator::Instance()->GetMRMutex());
     for (iter = this->cameras.begin(); iter != this->cameras.end(); iter++)
     {
       if (dynamic_cast<UserCamera*>((*iter)) == NULL)


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