void arrive_and_wait | ( | std::ptrdiff_t | n = 1 | ) |
Releases the latch by a specified number of threads and blocks the caller until the latch is opened.
n | A number of threads arriving to the latch. 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. |