Documentation Home >> Headers >> <jss/experimental_latch.hpp> Header >> std::experimental::latch >> std::experimental::latch constructor

Construct a std::experimental::latch with count events before it triggers.

explicit latch(ptrdiff_t count);

Requires:

count>=0

Effects:

The newly constructed latch has an internal count of count.

Postconditions:

A call to is_ready() on the newly-constructed latch returns true if and only if count==0

Header

#include <experimental/latch>

See Also