cpp/thread/barrier/arrive and wait

Atomically decrements the expected count by 1, then blocks at the synchronization point for the current phase until the phase completion step of the current phase is run. Equivalent to.

The behavior is undefined if the expected count for the current phase is zero.

Parameters
(none)

Return value
(none)

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