Ejemplo n.º 1
0
	CStressManager::~CStressManager()
	{
		m_mapCases.clear();

		if(m_hTimerQueue)
		{
			DeleteTimerQueue(m_hTimerQueue);
			m_hTimerQueue = NULL;
		}
		
		ASockIOFini();
		A_MUTEX_DESTROY(&m_mtxLocker);
	}
Ejemplo n.º 2
0
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;
}
Ejemplo n.º 3
0
	CAsyncIOConnection::~CAsyncIOConnection()
	{
		A_MUTEX_DESTROY(&m_mtxLock);
	}
Ejemplo n.º 4
0
	CClientApp::~CClientApp()
	{
		A_MUTEX_DESTROY(&m_mtxQueue);

		SaveParams();
	}