stop();
}
+ /// @brief Starts client's thread pool, if multi-threaded.
+ void start() {
+ if (threads_) {
+ threads_->run();
+ }
+ }
+
/// @brief Close all connections, and if multi-threaded, stops the
/// thread pool.
void stop() {
threads_->run();
}
-
- /// @brief Close all connections, and if multi-threaded, stop internal IOService
- /// and the thread pool.
- void stop() {
- // Stop the thread pool.
- if (threads_) {
- threads_->stop();
- }
-
- // Close all the connections.
- conn_pool_->closeAll();
- }
-
/// @brief Fetches the thread pool's run state.
///
/// @return Operational state of the thread pool.