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

Block the calling thread until the internal count of the std::experimental::latch is zero.

void wait() const;

Effects:

If the internal count of *this is zero returns immediately. Otherwise blocks until a call to std::experimental::latch::count_down or std::experimental::latch::count_down_and_wait reduces the internal count to zero.

Header

#include <experimental/latch>

See Also