A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../thread/barrier/wait.html below:

std::barrier<CompletionFunction>::wait - cppreference.com

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 until the phase completion step of the synchronization point's phase is run.

Otherwise, if arrival is associated with the phase synchronization point for the immediately preceding phase of *this, returns immediately.

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, the behavior is undefined.

[edit] Parameters arrival - an arrival_token obtained by a previous call to arrive on the same barrier [edit] Return value

(none)

[edit] Exceptions

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

[edit] Example [edit] See also arrives at barrier and decrements the expected count
(public member function) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4