chsvlib
chsv helper source code

◆ arrive_and_wait()

void arrive_and_wait ( )

Implements arrival of a thread to the barrier and blocking wait for opening of the barrier.

The following two sets of operations upon a barrier bar are equivalent:

bar.wait(bar.arrive());

and

bar.arrive_and_wait();