boost::capy::execution_context::shutdown

Shut down all services.

Synopsis

void
shutdown() noexcept;

Description

Calls shutdown() on each service in reverse order of creation. After this call, services remain allocated but are in a stopped state. Derived classes should call this in their destructor before any members are destroyed. This function is idempotent; subsequent calls have no effect.

Effects

Each service's shutdown() member function is invoked once.

Postconditions

  • All services are in a stopped state.

Exception Safety

No‐throw guarantee.

Thread Safety

Not thread‐safe. Must not be called concurrently with other operations on this execution_context.

Created with MrDocs