Scroll to navigation

std::latch::~latch(3) C++ Standard Libary std::latch::~latch(3)

NAME

std::latch::~latch - std::latch::~latch

Synopsis

~latch(); (since C++20)

Destroys the latch.

Notes

It is only safe to invoke the destructor if all threads have been notified. The programmer must ensure that no threads attempt to wait on *this once the destructor has been started. The destructor does not notify and release any waiting threads.

2026.11.10 http://cppreference.com