Boost C++ 库

...世界上最受尊敬、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

io_context::shutdown - Boost C++ 函数库
PrevUpHomeNext

继承自 execution_context。

关闭上下文中的所有服务。

void shutdown();

该函数实现如下:

  • 对于 execution_context 中的每个服务对象 svc,按照服务对象生命周期的逆序,执行 svc->shutdown()

PrevUpHomeNext