19 std::lock_guard<std::mutex> lk(
mutex_);
25 connection->asyncAccept();
31 std::lock_guard<std::mutex> lk(
mutex_);
43 std::lock_guard<std::mutex> lk(
mutex_);
49 connection->shutdown();
55 std::lock_guard<std::mutex> lk(
mutex_);
void stopAll()
Stops all connections and removes them from the pool.
void stop(const HttpConnectionPtr &connection)
Removes a connection from the pool and stops it.
void start(const HttpConnectionPtr &connection)
Start new connection.
std::list< HttpConnectionPtr > connections_
Set of connections.
std::mutex mutex_
Mutex to protect the internal state.
void stopAllInternal()
Stops all connections and removes them from the pool.
void shutdown(const HttpConnectionPtr &connection)
Removes a connection from the pool and shutdown it.
static MultiThreadingMgr & instance()
Returns a single instance of Multi Threading Manager.
boost::shared_ptr< HttpConnection > HttpConnectionPtr
Pointer to the HttpConnection.
Defines the logger used by the top-level component of kea-lfc.