Barrier class
#include <BipedalLocomotion/System/Barrier.h>
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.
Constructors, destructors, conversion operators
- Barrier(const std::size_t counter) explicit
- Constructor.
Public functions
- void wait()
- Blocks this thread at the phase synchronization point until its phase completion step is run.
Function documentation
BipedalLocomotion:: System:: Barrier:: Barrier(const std::size_t counter) explicit
Constructor.
| Parameters | |
|---|---|
| counter | initial value of the expected counter |