Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
connection_pool::get_executor

Retrieves the executor associated to this object.

Synopsis
connection_pool::executor_type
get_executor() noexcept;
Description

Returns the executor used to construct the pool as first argument. This is the case even when using pool_params::thread_safe - the internal strand created in this case is never exposed.

Exception safety

No-throw guarantee.

Thread-safety

Reads the internal state handle. Reads the pool state. If the pool was built with thread-safety enabled, it can be called concurrently with other functions that don't modify the state handle.


PrevUpHomeNext