Public Member Functions | |
nWaitForAckSync (nMessage *m, int rec, unsigned short obj) | |
virtual | ~nWaitForAckSync () |
virtual void | AckExtraAction () |
Private Attributes | |
unsigned short | netobj |
Definition at line 1415 of file nNetObject.cpp.
nWaitForAckSync::nWaitForAckSync | ( | nMessage * | m, | |
int | rec, | |||
unsigned short | obj | |||
) | [inline] |
Definition at line 1418 of file nNetObject.cpp.
References nNetObject::knowsAbout, sn_netObjects, and st_Breakpoint().
01419 :nWaitForAck(m,rec),netobj(obj){ 01420 if (sn_netObjects(obj)->knowsAbout[rec].acksPending<15) 01421 { 01422 sn_netObjects(obj)->knowsAbout[rec].acksPending++; 01423 } 01424 else 01425 { 01426 st_Breakpoint(); 01427 } 01428 }
virtual nWaitForAckSync::~nWaitForAckSync | ( | ) | [inline, virtual] |
Definition at line 1429 of file nNetObject.cpp.
References tCHECK_DEST.
01429 { 01430 tCHECK_DEST; 01431 }
virtual void nWaitForAckSync::AckExtraAction | ( | ) | [inline, virtual] |
Reimplemented from nWaitForAck.
Definition at line 1433 of file nNetObject.cpp.
References nNetObject::knowsAbout, and sn_netObjects.
01434 { 01435 nNetObject* obj = sn_netObjects[netobj]; 01436 if ( obj ) 01437 { 01438 if ( obj->knowsAbout[receiver].acksPending) 01439 { 01440 obj->knowsAbout[receiver].acksPending--; 01441 } 01442 else 01443 { 01444 // st_Breakpoint(); 01445 } 01446 01447 #ifdef DEBUG 01448 /* 01449 if ( !obj->knowsAbout[receiver].knowsAboutExistence ) 01450 { 01451 tString str; 01452 obj->PrintName( str ); 01453 con << "Received ack for object " << str << "\n"; 01454 } 01455 */ 01456 #endif 01457 01458 obj->knowsAbout[receiver].knowsAboutExistence=true; 01459 } 01460 else 01461 { 01462 // st_Breakpoint(); 01463 } 01464 }
unsigned short nWaitForAckSync::netobj [private] |
Definition at line 1416 of file nNetObject.cpp.