BipedalLocomotion::System::Barrier class

Barrier provides a thread-coordination mechanism that allows an expected number of threads to block until the expected number of threads arrive at the barrier.

Public static functions

static auto create(const std::size_t counter) -> std::shared_ptr<Barrier>
Calls the constructor.

Public functions

void wait()
Blocks this thread at the phase synchronization point until its phase completion step is run.

Function documentation

static std::shared_ptr<Barrier> BipedalLocomotion::System::Barrier::create(const std::size_t counter)

Calls the constructor.

It creates a new Barrier with the given counter.