|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
barrier::wait | ||||
| Constants | ||||
void wait( arrival_token&& arrival)const; | (since C++20) | |
Ifarrival is associated with the phase synchronization point for the current phase of*this, blocks at the synchronization point associated witharrival until the phase completion step of the synchronization point's phase is run.
Otherwise, ifarrival is associated with the phase synchronization point for the immediately preceding phase of*this, returns immediately.
Otherwise, i.e. ifarrival is associated with the phase synchronization point for an earlier phase of*this or any phase of a barrier object other than*this, the behavior is undefined.
Contents |
| arrival | - | anarrival_token obtained by a previous call toarrive on the samebarrier |
(none)
Throwsstd::system_error with an error code allowed for mutex types on error.
| This section is incomplete Reason: no example |
| arrives at barrier and decrements the expected count (public member function)[edit] |