future、promise、async 与任务结果 | C++

本章覆盖:`std::future`;`std::promise`;`std::async`;future result;exception propagation;launch policy;one-shot channel;packaged_task 的定位;thread pool 不由 std::async 自动等价提供;现代工程常使用自建 / 框架线程池。

本章知识点

  • std::future
  • std::promise
  • std::async
  • future result
  • exception propagation
  • launch policy
  • one-shot channel
  • packaged_task 的定位
  • thread pool 不由 std::async 自动等价提供
  • 现代工程常使用自建 / 框架线程池