CStressManager::~CStressManager() { m_mapCases.clear(); if(m_hTimerQueue) { DeleteTimerQueue(m_hTimerQueue); m_hTimerQueue = NULL; } ASockIOFini(); A_MUTEX_DESTROY(&m_mtxLocker); }
A_STATUS htcTargetRemovedHandler(HIF_DEVICE *device) { HTC_TARGET *target; HTC_EVENT_INFO eventInfo; /* Get the target instance bound to this device */ target = getTargetInstance(device); if (target != NULL) { /* Frame a TARGET_UNAVAILABLE event and send it to the host */ FRAME_EVENT(eventInfo, NULL, 0, 0, A_OK, NULL); dispatchEvent(target, ENDPOINT_UNUSED, HTC_TARGET_UNAVAILABLE, &eventInfo); } A_MUTEX_DESTROY(&txCS); A_MUTEX_DESTROY(&counterCS); A_MUTEX_DESTROY(&creditCS); A_MUTEX_DESTROY(&instanceCS); return A_OK; }
CAsyncIOConnection::~CAsyncIOConnection() { A_MUTEX_DESTROY(&m_mtxLock); }
CClientApp::~CClientApp() { A_MUTEX_DESTROY(&m_mtxQueue); SaveParams(); }