std::experimental::latch::~latch - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::latch::~latch

From cppreference.com
< cpp‎ | experimental‎ | latch

~latch(); |  | (concurrency TS)

Destroys the latch.

The behavior is undefined if a thread is blocked at the synchronization point.

The destructor may be called even if not all threads have returned from `wait()` or `count_down_and_wait()`, provided the internal counter must equal zero.

The destructor may block until all threads have returned from the blocking functions.

No thread is allowed to block on this latch after one thread has invoked the destructor.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/latch/%7Elatch&oldid=82456"