- Timestamp:
- May 2, 2011, 5:00:20 AM (14 years ago)
- Location:
- code/trunk/src/libraries
- Files:
-
- 3 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 } -
code/trunk/src/libraries/network/GamestateManager.cc
r8327 r8373 54 54 #include "util/Debug.h" 55 55 #include "util/Clock.h" 56 #include "util/OrxAssert.h" 56 57 // #include "TrafficControl.h" 57 58 … … 108 109 // now push only the most recent gamestates we received (ignore obsolete ones) 109 110 for(it = gamestateQueue.begin(); it!=gamestateQueue.end(); it++){ 110 bool b = processGamestate(it->second); 111 assert(b); 111 OrxVerify(processGamestate(it->second), ""); 112 112 sendAck( it->second->getID(), it->second->getPeerID() ); 113 113 delete it->second; … … 252 252 253 253 254 // bool b = gs->compressData(); 255 // assert(b); 254 // OrxVerify(gs->compressData(), ""); 256 255 clock.capture(); 257 256 COUT(5) << "diff and compress time: " << clock.getDeltaTime() << endl; … … 363 362 if(gs->isCompressed()) 364 363 { 365 bool b = gs->decompressData(); 366 assert(b); 364 OrxVerify(gs->decompressData(), ""); 367 365 } 368 366 assert(!gs->isDiffed()); -
code/trunk/src/libraries/network/packet/Gamestate.cc
r8327 r8373 32 32 33 33 #include "util/Debug.h" 34 #include "util/OrxAssert.h" 34 35 #include "core/GameMode.h" 35 36 #include "core/ObjectList.h" … … 201 202 { 202 203 // COUT(4) << "updating object of classid " << objectheader.getClassID() << endl; 203 bool b = s->updateData(mem, mode); 204 assert(b); 204 OrxVerify(s->updateData(mem, mode), ""); 205 205 } 206 206 }
Note: See TracChangeset
for help on using the changeset viewer.