cpp/thread/latch/arrive and wait

Atomically decrements the internal counter by and (if necessary) blocks the calling thread until the counter reaches zero. Equivalent to.

If is greater than the value of the internal counter or is negative, the behavior is undefined.

Return value
(none)

Exceptions
Throws std with an error code allowed for mutex types on error.