std::barrier<CompletionFunction>::wait
From cppreference.com
C++
Concurrency support library
|
|
std::barrier
Member functions | ||||
barrier::wait | ||||
Constants | ||||
void wait( arrival_token&& arrival ) const;
|
(since C++20) | |
If arrival is associated with the phase synchronization point for the current phase of *this, blocks at the synchronization point associated with arrival
Otherwise, if arrival is associated with the phase synchronization point for the immediately preceding phase of *this
Otherwise, i.e. if arrival is associated with the phase synchronization point for an earlier phase of *this or any phase of a barrier object other than *this
Parameters
arrival | - | an arrival_token obtained by a previous call to arrive on the same barrier
|
Return value
(none)
Exceptions
Throws std::system_error with an error code allowed for mutex types on error.
Example
This section is incomplete Reason: no example |
See also
arrives at barrier and decrements the expected count (public member function) |