Documentation Home >> Headers >> <jss/experimental_barrier.hpp> Header >> std::experimental::barrier >> std::experimental::barrier constructor

Construct a std::experimental::barrier with N participating threads.

explicit barrier(ptrdiff_t num_threads);

Effects:

The newly-constructed barrier has num_threads participating threads.

Header

#include <experimental/barrier>

See Also