【发布时间】:2018-09-02 14:54:47
【问题描述】:
根据cppref:
std::notify_all_at_thread_exit提供了一种机制来通知其他人 给定线程已完全完成的线程,包括 销毁所有 thread_local 对象。
我知道std::notify_all_at_thread_exit 的确切语义。让我不解的是:
如何注册在给定线程完成并销毁其所有线程本地对象后调用的回调函数?
【问题讨论】:
标签: c++ multithreading c++11 standards language-implementation