示例#1
0
EventLoop::~EventLoop() {
    stop();
    while(m_status != STATUS_CLOSED) {
        sleep_ms(50);
        addAsynOperator();
    }
    delAllOp();
    delAllConnections();
    sock_close(m_ctlfd);
    sock_close(m_ctlfd1);
    mutexDestroy(&m_opcs);
    if(m_clean)
        m_clean(this, m_obj);
}
示例#2
0
		/**
		 *\~english
		 *\brief		Destructor.
		 *\remarks		Executes the clean action.
		 *\~french
		 *\brief		Destructeur.
		 *\remarks		Exécute l'action de nettoyage.
		 */
		~BlockGuard()
		{
			m_clean();
		}