Changeset 8373 for code/trunk/src/libraries/core
- Timestamp:
- May 2, 2011, 5:00:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/ThreadPool.cc
r7284 r8373 28 28 29 29 #include "ThreadPool.h" 30 31 #include "util/OrxAssert.h" 30 32 #include "Thread.h" 31 #include <cassert>32 33 33 34 namespace orxonox … … 40 41 ThreadPool::~ThreadPool() 41 42 { 42 unsigned int a = this->setNrOfThreads(0); 43 assert(a == 0); 43 OrxVerify(this->setNrOfThreads(0) == 0, "" ); 44 44 } 45 45 … … 88 88 if ( ! (*it)->isWorking() ) 89 89 { 90 bool b = (*it)->evaluateExecutor( executor );91 assert(b); // if b is false then there is some code error90 // If that fails, then there is some code error 91 OrxVerify( (*it)->evaluateExecutor( executor ), "" ); 92 92 return true; 93 93 } … … 96 96 { 97 97 addThreads( 1 ); 98 bool b = this->threadPool_.back()->evaluateExecutor( executor ); // access the last element 99 assert(b); 98 OrxVerify( this->threadPool_.back()->evaluateExecutor( executor ), "" ); // access the last element 100 99 return true; 101 100 }
Note: See TracChangeset
for help on using the changeset viewer.