std::latch::~latch

From cppreference.com
< cpp‎ | thread‎ | latch
 
 
Thread support library
Threads
(C++11)
(C++20)
(C++20)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores
Latches and barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
 
 
~latch();
(since C++20)

Destroys the latch.

Notes

In the Concurrency TS, the behavior is undefined if the destructor is called when there is any thread blocked on the latch. The requirement is removed in C++20.