cpp/thread/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. It operates as follows:


 * Ownership of the previously acquired lock is transferred to internal storage.


 * The execution environment is modified such that when the current thread exits, the condition variable is notified as if by:

The implied is sequenced after (as defined in std)  the destruction of all objects with thread local storage duration associated with the current thread.

An equivalent effect may be achieved with the facilities provided by std or std.

Return value
(none)