std::packaged_task::make_ready_at_thread_exit (3) Linux Manual Page
std::packaged_task<R(Args…)>::make_ready_at_thread_exit – std::packaged_task<R(Args…)>::make_ready_at_thread_exit Synopsis void make_ready_at_thread_exit(ArgTypes… args); (since C++ 11) Calls the stored task with forwarded args as the arguments. The return value of the task or any exception thrown by it is stored in the shared state of *this. The shared state is only made ready after the current thread exits and all objects…
