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

This is the documentation for a snapshot of the master branch, built from commit eef40d496b.
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.

Thread-safety

Reads the internal state handle. Mutates 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