chsvlib
chsv helper source code

◆ count_down()

void count_down ( std::ptrdiff_t  n = 1)
noexcept

Decrements a number of threads to wait for arrival to the synchronization points by a specified number.

Parameters
nA value by which to decrement the number of threads to wait at the arrival points. The behaviour is undefined, if n is negative or is greater than the amount of threads the latch is currently waiting to arrive to the synchronization points.

Unlike arrive_and_wait, a call to count_down is non-blocking.