cpp/thread/barrier/arrive

Constructs an object associated with the phase synchronization point for the current phase. Then, decrements the expected count by.

This function executes 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 is less than or equal to 0 or greater than the expected count for the current barrier phase.

Return value
The constructed object.

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