函数名称 | ||
void notify_fork(fork_event event) |
enum fork_event { /// Notify the context that the process is about to fork. fork_prepare,
/// Notify the context that the process has forked and is the parent. fork_parent,
/// Notify the context that the process has forked and is the child. fork_child }; |
|
template <typename Service> friend Service& use_service(execution_context& e) |
获取execution_context对应的Service | |
template <typename Service> friend Service& use_service(io_context& ioc) |
获取execution_context对应的Service | |
template <typename Service, typename... Args> friend Service& make_service(execution_context& e, |
boost::asio序列3: execution_context
最新推荐文章于 2023-04-20 19:03:23 发布
本文探讨了Boost.Asio中的execution_context,它管理多个services并为每个service提供唯一的id标识。execution_context是异步操作的核心组件,用于协调不同服务的执行。
摘要由CSDN通过智能技术生成