Revision: 7399
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7399&view=rev
Author:   natepak
Date:     2009-03-09 07:22:54 +0000 (Mon, 09 Mar 2009)

Log Message:
-----------
Remove boost semaphores

Modified Paths:
--------------
    code/branches/federation/gazebo/libgazebo/SimIface.cc

Modified: code/branches/federation/gazebo/libgazebo/SimIface.cc
===================================================================
--- code/branches/federation/gazebo/libgazebo/SimIface.cc       2009-03-09 
07:21:49 UTC (rev 7398)
+++ code/branches/federation/gazebo/libgazebo/SimIface.cc       2009-03-09 
07:22:54 UTC (rev 7399)
@@ -10,8 +10,8 @@
 
 {
   this->goAckThread = NULL;
-  this->goAckCond = NULL;
-  this->mutex = NULL;
+ // this->goAckCond = NULL;
+  //this->mutex = NULL;
 }
 
 
@@ -19,13 +19,14 @@
 /// Destroy an interface
 SimulationIface::~SimulationIface() 
 {
-  if (this->mutex)
+  /*if (this->mutex)
     delete this->mutex;
   this->mutex = NULL;
 
   if (this->goAckThread)
     delete this->goAckThread;
   this->goAckThread = NULL;
+  */
 
   // Deleting this condition causes and error...no time to debug this.
   /*if (this->goAckCond)
@@ -34,7 +35,7 @@
     delete this->goAckCond;
     printf("Done deleting the condition\n");
     }*/
-  this->goAckCond = NULL;
+  //this->goAckCond = NULL;
 
   this->data = NULL;
 }
@@ -46,9 +47,9 @@
 {
   Iface::Create(server,id); 
   this->data = (SimulationData*)((char*)this->mMap+sizeof(SimulationIface)); 
-  this->goAckThread = NULL;
-  this->mutex = NULL;
-  this->goAckCond = NULL;
+  //this->goAckThread = NULL;
+  //this->mutex = NULL;
+  //this->goAckCond = NULL;
 }
 
 
////////////////////////////////////////////////////////////////////////////////
@@ -62,8 +63,8 @@
   // then signals the goAckSignal
   if (this->goAckThread == NULL)
   {
-    this->mutex = new boost::mutex;
-    this->goAckCond = new boost::condition;
+    //this->mutex = new boost::mutex;
+    //this->goAckCond = new boost::condition;
     this->goAckThread = new boost::thread( 
         boost::bind(&SimulationIface::BlockThread, this));
     usleep(100);


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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to