cpp/thread/barrier/arrive and drop

Decrements the initial expected count for all subsequent phases by one, and then decrements the expected count for the current phase by one.

This function is executed atomically. The call to this function strongly happens-before the start of the phase completion step for the current phase.

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.