void begin(AsyncTcpSessionInterface_ptr session) { mConnections.insert(session); session->start(); }
void begin(AsyncTcpSessionInterface_ptr session) { std::unique_lock<std::recursive_mutex> lock(mLock); connections.insert(session); session->start(); }