13 assert((
threads > 0) &&
"Count of barrier threads must be greater than zero!");
19 int generation = _generation;
36 while ((generation == _generation) || (_counter == 0));
int threads() const noexcept
Get the count of threads to wait at the barrier.
bool Wait() noexcept
Wait at the barrier until all other threads reach this barrier.
SpinBarrier(int threads) noexcept
Default class constructor.
C++ Common project definitions.