Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext
connection_pool::cancel

Stops any current outstanding operation and marks the pool as cancelled.

Synopsis
void
cancel();
Description

This function has the following effects:

This function will return immediately, without waiting for the cancelled operations to complete.

You may call this function any number of times. Successive calls will have no effect.

Preconditions

this->valid() == true

Exception safety

Basic guarantee. Memory allocations and acquiring mutexes may throw.

Thead-safety

When the pool is constructed with adequate executor configuration, this function is safe to be called concurrently with async_run, async_get_connection, ~pooled_connection and pooled_connection::return_without_reset.


PrevUpHomeNext