exp passed to assert must not change the state of the data structures

This commit is contained in:
Jeff Hill
2009-08-24 17:03:17 +00:00
parent aa904449c0
commit 794811b95a
3 changed files with 8 additions and 4 deletions

View File

@@ -145,7 +145,8 @@ private:
return;
}
pComBuf = newComBuf ();
assert ( pComBuf->push ( val ) );
bool success = pComBuf->push ( val );
assert ( success );
this->pushComBuf ( *pComBuf );
}

View File

@@ -79,8 +79,8 @@ void nciu::destroy (
epicsGuard < epicsMutex > & guard )
{
while ( baseNMIU * pNetIO = this->eventq.first () ) {
assert ( this->cacCtx.destroyIO (
guard, pNetIO->getId (), *this ) );
bool success = this->cacCtx.destroyIO ( guard, pNetIO->getId (), *this );
assert ( success );
}
// if the claim reply has not returned yet then we will issue

View File

@@ -511,7 +511,10 @@ void ca_repeater ()
pBuf = new char [MAX_UDP_RECV];
assert ( osiSockAttach() );
{
bool success = osiSockAttach();
assert ( success );
}
port = envGetInetPortConfigParam ( & EPICS_CA_REPEATER_PORT,
static_cast <unsigned short> (CA_REPEATER_PORT) );