void ConnectionManager::addConnection(const ConnectionPtr& conn) { boost::mutex::scoped_lock lock(connections_mutex_); connections_.insert(conn); conn->addDropListener(boost::bind(&ConnectionManager::onConnectionDropped, this, _1)); }