cpp / latest / thread / barrier / ~barrier.html /

std::barrier<CompletionFunction>::~barrier

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

Destroys the barrier.

Notes

The behavior is undefined if any thread is concurrently calling a member function of the barrier.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/barrier/%7Ebarrier