GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::barrier::arrive_and_wait(3) C++ Standard Libary std::barrier::arrive_and_wait(3)

std::barrier::arrive_and_wait - std::barrier::arrive_and_wait


void arrive_and_wait(); (since C++20)


Atomically decrements the expected count by 1, then blocks at the synchronization
point for the current phase until the phase completion step of the current phase is
run. Equivalent to wait(arrive());.


The behavior is undefined if the expected count for the current phase is zero.


(none)


(none)


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


If the current expected count is decremented to zero in the call to this function,
the phase completion step is run and this function does not block.


If the current expected count is zero before calling this function, the initial
expected count for all subsequent phases is also zero, which means the barrier
cannot be reused.


This section is incomplete
Reason: no example

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.