dimanche 2 septembre 2018

How does std::notify_all_at_thread_exit work?

According to cppref:

std::notify_all_at_thread_exit provides a mechanism to notify other threads that a given thread has completely finished, including destroying all thread_local objects.

The question is:

How to register a callback that will be called after a given thread has finished and destroyed all of its thread-local objects?

Aucun commentaire:

Enregistrer un commentaire