simplified

This commit is contained in:
Jeff Hill
2002-12-11 02:11:16 +00:00
parent 2ad0b9e362
commit dc5f217493
3 changed files with 18 additions and 21 deletions
+12 -10
View File
@@ -639,16 +639,26 @@ bool udpiiu::searchRespAction ( // X aCC 361
serverAddr.ia.sin_addr = addr.ia.sin_addr;
}
bool success;
if ( CA_V42 ( minorVersion ) ) {
return this->cacRef.lookupChannelAndTransferToTCP
success = this->cacRef.lookupChannelAndTransferToTCP
( cbLocker, msg.m_available, msg.m_cid, 0xffff,
0, minorVersion, serverAddr, currentTime );
}
else {
return this->cacRef.lookupChannelAndTransferToTCP
success = this->cacRef.lookupChannelAndTransferToTCP
( cbLocker, msg.m_available, msg.m_cid, msg.m_dataType,
msg.m_count, minorVersion, serverAddr, currentTime );
}
if ( success ) {
// deadlock can result if this is called while holding the primary
// mutex (because the primary mutex is used in the search timer callback)
this->pSearchTmr->notifySearchResponse ( this->lastReceivedSeqNo,
this->lastReceivedSeqNoIsValid, currentTime );
}
return true;
}
bool udpiiu::beaconAction ( epicsGuard < callbackMutex > &, const caHdr &msg,
@@ -992,14 +1002,6 @@ void udpiiu::repeaterConfirmNotify ()
this->pRepeaterSubscribeTmr->confirmNotify ();
}
void udpiiu::notifySearchResponse ( const epicsTime & currentTime )
{
// deadlock can result if this is called while holding the primary
// mutex (because the primary mutex is used in the search timer callback)
this->pSearchTmr->notifySearchResponse ( this->lastReceivedSeqNo,
this->lastReceivedSeqNoIsValid, currentTime );
}
void udpiiu::beaconAnomalyNotify ()
{
{