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

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

explicit flex_barrier(ptrdiff_t num_threads);

Effects:

The newly-constructed flex_barrier has num_threads participating threads.

Note:

A std::experimental::flex_barrier constructed with this constructor has the same behaviour as a std::experimental::barrier constructed with the same num_threads value.

Header

#include <experimental/barrier>

See Also