Documentation Home >> Headers >> <jss/experimental_latch.hpp> Header >> std::experimental::latch >> std::experimental::latch::count_down_and_wait member function

Decrease the internal count of the std::experimental::latch, and block until the count has been decreased to zero.

void count_down_and_wait();

Requires:

The internal count of the latch is greater than 0.

Effects:

this->count_down(1); this->wait();

Header

#include <experimental/latch>

See Also