std::experimental::flex_barrier::arrive_and_wait (3) - Linux Manuals
std::experimental::flex_barrier::arrive_and_wait: std::experimental::flex_barrier::arrive_and_wait
Command to display std::experimental::flex_barrier::arrive_and_wait
manual in Linux: $ man 3 std::experimental::flex_barrier::arrive_and_wait
NAME
std::experimental::flex_barrier::arrive_and_wait - std::experimental::flex_barrier::arrive_and_wait
Synopsis
void arrive_and_wait(); (concurrency TS)
Blocks and arrives at the flex_barrier's synchronization point.
The behavior is undefined if the calling thread is not in the set of participating threads of this flex_barrier.
Calls to arrive_and_wait synchronizes with the start of the completion phase of the flex_barrier. The completion of the completion phase synchronizes with the return from the call.
Calls to arrive_and_drop and arrive_and_wait never introduce data races with themselves or each other.
Notes
It is safe for a thread to call either arrive_and_wait() or arrive_and_drop() immediately on return from this call (provided that the function object for the completion phase did not return zero). It's not necessary to ensure that all blocked threads have exited arrive_and_wait() before a thread calls it again.
The completion phase executes the function object specified when the flex_barrier was constructed. If it returns -1, the set of participating threads is unchanged; otherwise, the set of participating threads is a new set with the size equal to the return value N, and consists of the next N threads to arrive at the synchronization point. If N == 0, the flex_barrier can only be destroyed.
The initial set of participating threads for a flex_barrier constructed for num_threads threads is the first num_threads to arrive at its synchronization point.
Exceptions
Throws nothing.
See also
arrive at the synchronization point and remove the current thread from the set of participating threads
arrive_and_drop (public member function)
Pages related to std::experimental::flex_barrier::arrive_and_wait
- std::experimental::flex_barrier::arrive_and_drop (3) - std::experimental::flex_barrier::arrive_and_drop
- std::experimental::flex_barrier::flex_barrier (3) - std::experimental::flex_barrier::flex_barrier
- std::experimental::flex_barrier::~flex_barrier (3) - std::experimental::flex_barrier::~flex_barrier
- std::experimental::flex_barrier (3) - std::experimental::flex_barrier
- std::experimental::filesystem::absolute,std::experimental::filesystem::system_complete (3) - std::experimental::filesystem::absolute,std::experimental::filesystem::system_complete
- std::experimental::filesystem::begin(directory_iterator), (3) - std::experimental::filesystem::begin(directory_iterator),
- std::experimental::filesystem::begin(directory_iterator),std::experimental::filesystem::end(directory_iterator) (3) - std::experimental::filesystem::begin(directory_iterator),std::experimental::filesystem::end(directory_iterator)
- std::experimental::filesystem::begin(recursive_directory_iterator), (3) - std::experimental::filesystem::begin(recursive_directory_iterator),
- std::experimental::filesystem::begin(recursive_directory_iterator),std::experimental::filesystem::end(recursive_directory_iterator) (3) - std::experimental::filesystem::begin(recursive_directory_iterator),std::experimental::filesystem::end(recursive_directory_iterator)
- std::experimental::filesystem::canonical (3) - std::experimental::filesystem::canonical
- std::experimental::filesystem::copy (3) - std::experimental::filesystem::copy
- std::experimental::filesystem::copy_file (3) - std::experimental::filesystem::copy_file
- std::experimental::filesystem::copy_options (3) - std::experimental::filesystem::copy_options
- std::experimental::filesystem::copy_symlink (3) - std::experimental::filesystem::copy_symlink
- std::experimental::filesystem::create_directory, (3) - std::experimental::filesystem::create_directory,
- std::experimental::filesystem::create_directory,std::experimental::filesystem::create_directories (3) - std::experimental::filesystem::create_directory,std::experimental::filesystem::create_directories
- std::experimental::filesystem::create_hard_link (3) - std::experimental::filesystem::create_hard_link
- std::experimental::filesystem::create_symlink, (3) - std::experimental::filesystem::create_symlink,
- std::experimental::filesystem::create_symlink,std::experimental::filesystem::create_directory_symlink (3) - std::experimental::filesystem::create_symlink,std::experimental::filesystem::create_directory_symlink
- std::experimental::filesystem::current_path (3) - std::experimental::filesystem::current_path
- std::experimental::filesystem::directory_entry (3) - std::experimental::filesystem::directory_entry
- std::experimental::filesystem::directory_entry::assign (3) - std::experimental::filesystem::directory_entry::assign
- std::experimental::filesystem::directory_entry::directory_entry (3) - std::experimental::filesystem::directory_entry::directory_entry
- std::experimental::filesystem::directory_entry::operator= (3) - std::experimental::filesystem::directory_entry::operator=