/************************************************************** * * shutdownComm - Close the Message Q , DataBase & Channel * * This routine closes the message Q , DataBase and Channel * * RETURNS: * MSG_Q_ID , or NULL on error. * * Author Greg Brissey 8/4/94 */ int shutdownComm(void) { #ifndef RTI_NDDS_4x HBExit(); #endif /* RTI_NDDS_4x */ deleteMsgQ(pRecvMsgQ); /* DestroyPubSub(); */ DestroyDomain(); usleep(500000); /* 500 millisec sleep */ }
static eEsifError DestroyDomains( EsifAppPtr appPtr, AppParticipantDataMapPtr participantDataMapPtr ) { eEsifError rc = ESIF_OK; UInt8 i = 0; ESIF_TRACE_DEBUG("Destroy Domains\n"); for (i = 0; i < MAX_DOMAIN_ENTRY; i++) { AppDomainDataMapPtr domainDataMapPtr = &participantDataMapPtr->fDomainData[i]; if (NULL == domainDataMapPtr->fAppDomainHandle) { continue; } rc = DestroyDomain(appPtr, participantDataMapPtr, domainDataMapPtr); } return rc; }