コード例 #1
0
void endpoint<connection,config>::remove_connection(connection_ptr con) {
    std::stringstream s;
    s << "remove_connection. New count: " << m_connections.size()-1;
    m_alog.write(log::alevel::devel,s.str());

    scoped_lock_type lock(m_mutex);

    // unregister the termination handler
    con->set_termination_handler(termination_handler());

    m_connections.erase(con);
}