[Orxonox-commit 771] r3298 - branches/netp6/src/core
scheusso at orxonox.net
scheusso at orxonox.net
Tue Jul 14 17:47:06 CEST 2009
Author: scheusso
Date: 2009-07-14 17:47:06 +0200 (Tue, 14 Jul 2009)
New Revision: 3298
Modified:
branches/netp6/src/core/Thread.cc
Log:
removed some (hopefully) unnecessary mutex calls
Modified: branches/netp6/src/core/Thread.cc
===================================================================
--- branches/netp6/src/core/Thread.cc 2009-07-14 14:50:22 UTC (rev 3297)
+++ branches/netp6/src/core/Thread.cc 2009-07-14 15:47:06 UTC (rev 3298)
@@ -90,9 +90,9 @@
bool stopThread = false;
while( !stopThread )
{
- this->executorMutex_->lock();
+ //this->executorMutex_->lock();
Executor* executor = this->executor_;
- this->executorMutex_->unlock();
+ //this->executorMutex_->unlock();
if( executor )
{
(*executor)();
@@ -108,9 +108,9 @@
{
this->workerThread_->yield();
}
- this->stopThreadMutex_->lock();
+ //this->stopThreadMutex_->lock();
stopThread = this->stopThread_;
- this->stopThreadMutex_->unlock();
+ //this->stopThreadMutex_->unlock();
}
}
More information about the Orxonox-commit
mailing list