this_thread
Destroys the latch.
latch
The behavior is undefined if any thread is concurrently calling a member function of the latch.