Changeset 8394 for code/trunk/src/libraries
- Timestamp:
- May 3, 2011, 9:19:52 AM (14 years ago)
- Location:
- code/trunk/src/libraries
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/ThreadPool.cc
r8373 r8394 41 41 ThreadPool::~ThreadPool() 42 42 { 43 OrxVerify(this->setNrOfThreads(0) == 0, " " );43 OrxVerify(this->setNrOfThreads(0) == 0, "ERROR: could not join remaining threads in ThreadPool" ); 44 44 } 45 45 … … 89 89 { 90 90 // If that fails, then there is some code error 91 OrxVerify( (*it)->evaluateExecutor( executor ), " " );91 OrxVerify( (*it)->evaluateExecutor( executor ), "ERROR: could not evaluate Executor" ); 92 92 return true; 93 93 } … … 96 96 { 97 97 addThreads( 1 ); 98 OrxVerify( this->threadPool_.back()->evaluateExecutor( executor ), " " ); // access the last element98 OrxVerify( this->threadPool_.back()->evaluateExecutor( executor ), "ERROR: could not evaluate Executor" ); // access the last element 99 99 return true; 100 100 } -
code/trunk/src/libraries/network/GamestateManager.cc
r8373 r8394 94 94 assert(gs); 95 95 std::map<unsigned int, packet::Gamestate*>::iterator it = gamestateQueue.find(clientID); 96 if(it!=gamestateQueue.end()){ 96 if(it!=gamestateQueue.end()) 97 { 97 98 // delete obsolete gamestate 98 99 delete it->second; … … 108 109 std::map<unsigned int, packet::Gamestate*>::iterator it; 109 110 // now push only the most recent gamestates we received (ignore obsolete ones) 110 for(it = gamestateQueue.begin(); it!=gamestateQueue.end(); it++){ 111 OrxVerify(processGamestate(it->second), ""); 111 for(it = gamestateQueue.begin(); it!=gamestateQueue.end(); it++) 112 { 113 OrxVerify(processGamestate(it->second), "ERROR: could not process Gamestate"); 112 114 sendAck( it->second->getID(), it->second->getPeerID() ); 113 115 delete it->second; … … 362 364 if(gs->isCompressed()) 363 365 { 364 OrxVerify(gs->decompressData(), " ");366 OrxVerify(gs->decompressData(), "ERROR: could not decompress Gamestate"); 365 367 } 366 368 assert(!gs->isDiffed()); -
code/trunk/src/libraries/network/packet/Gamestate.cc
r8373 r8394 202 202 { 203 203 // COUT(4) << "updating object of classid " << objectheader.getClassID() << endl; 204 OrxVerify(s->updateData(mem, mode), " ");204 OrxVerify(s->updateData(mem, mode), "ERROR: could not update Synchronisable with Gamestate data"); 205 205 } 206 206 } … … 263 263 uint8_t *d1 = data_+GamestateHeader::getSize(); 264 264 uint8_t *d2 = gs.data_+GamestateHeader::getSize(); 265 GamestateHeader * h1 = new GamestateHeader(data_);266 GamestateHeader * h2 = new GamestateHeader(gs.data_);267 assert(h1 ->getDataSize() == h2->getDataSize());265 GamestateHeader h1(data_); 266 GamestateHeader h2(gs.data_); 267 assert(h1.getDataSize() == h2.getDataSize()); 268 268 assert(!isCompressed()); 269 269 assert(!gs.isCompressed()); 270 return memcmp(d1, d2, h1 ->getDataSize())==0;270 return memcmp(d1, d2, h1.getDataSize())==0; 271 271 } 272 272
Note: See TracChangeset
for help on using the changeset viewer.