Construct a std::experimental::latch
with count
events before it triggers.
explicit latch(ptrdiff_t count);
count>=0
The newly constructed latch has an internal count of count
.
A call to is_ready()
on the newly-constructed latch
returns true
if and
only if count==0
#include <experimental/latch>