hpx/concurrency/barrier.hpp

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace util
class barrier

Public Functions

barrier(std::size_t number_of_threads)
~barrier()
void wait()

Private Types

typedef std::mutex mutex_type

Private Members

const std::size_t number_of_threads_
std::size_t total_
mutex_type mtx_
std::condition_variable cond_

Private Static Attributes

constexpr std::size_t barrier_flag = static_cast<std::size_t>(1) << (CHAR_BIT * sizeof(std::size_t) - 1)