Namespaces
Variants
Actions

std::barrier<CompletionFunction>::wait

From cppreference.com
< cpp‎ | thread‎ | barrier
 
 
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++17)
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++26)
(C++26)
(C++26)
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)(deprecated in C++26)
 
 
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

This section is incomplete
Reason: no example

[edit] See also

arrives at barrier and decrements the expected count
(public member function) [edit]
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/thread/barrier/wait&oldid=161105"

AltStyle によって変換されたページ (->オリジナル) /