arrival_token arrive | ( | std::ptrdiff_t | n = 1 | ) |
Implements arrival of a specified number of threads to the barrier.
n | A number of threads arriving to the barrier. The behaviour is undefined, if n is less than zero or greater than the number of threads the barrier is currently waiting to arrive. |
The method may cause opening of the barrier and the call of the completion routine.
Provided that bar
is an instance of a barrier, the following two code snippets perform equivalent actions. That is,
is equivalent to