ASSERT_TRUE(service->client_);
ASSERT_TRUE(service->client_->isStopped());
- // Listener should exist but not be stopped..
+ // Listener should exist but be stopped..
ASSERT_TRUE(service->listener_);
ASSERT_TRUE(service->client_->isStopped());
/// @brief Starts running the listener's thread pool.
void start();
- /// @brief Pauses the listener's thread pool.
+ /// @brief Pauses the listener's thread pool.
void pause();
- /// @brief Resumes running the listener's thread pool.
+ /// @brief Resumes running the listener's thread pool.
void resume();
/// @brief Stops the listener's thread pool.
/// @brief Indicates if the thread pool is stopped.
///
- /// @return True if the thread pool does not exist or it
- /// is in the STOPPED state, False otherwise.
+ /// @return True if the thread pool does not exist or it
+ /// is in the STOPPED state, false otherwise.
bool isStopped();
/// @brief Indicates if the thread pool processing is running.
}
asiolink::IOServicePtr getThreadIOService() const {
- return(thread_io_service_);
+ return (thread_io_service_);
}
private:
conn_pool_->closeAll();
}
- /// @brief Fetches the thread pool's operational state.
+ /// @brief Fetches the thread pool's run state.
///
/// @return Operational state of the thread pool.
HttpThreadPool::RunState getRunState() const {
};
HttpClient::HttpClient(IOService& io_service, size_t thread_pool_size,
- bool defer_thread_start/* = false*/) {
+ bool defer_thread_start /* = false */) {
if (thread_pool_size > 0) {
if (!MultiThreadingMgr::instance().getMode()) {
isc_throw(InvalidOperation,
///
/// @param io_service IO service to be used by the HTTP client.
/// @param thread_pool_size maximum number of threads in the thread pool.
- /// @param defer_thread_start if true, then the thread pool will be
- /// created but started Applicable only when thread-pool-size is
- /// greater than zero.
+ /// @param defer_thread_start if true, the thread pool will be created but
+ /// started. Applicable only when thread-pool-size is greater than zero.
/// A value greater than zero enables multi-threaded mode and sets the
/// maximum number of concurrent connections per URL. A value of zero
/// (default) enables single-threaded mode with one connection per URL.
/// @return the number of running threads.
uint16_t getThreadCount() const;
- /// @brief Fetches the thread pool's operational state.
+ /// @brief Fetches the thread pool's run state.
///
/// @return Operational state of the thread pool.
/// @throw InvalidOperation if the thread pool does not exist.