std::experi...ve_and_drop(3)
π NAME π
std::experimental::flex_barrier::arrive_and_drop β the flex_barrier member that says βiβm here, and also iβm leaving the group chatβ π«Ά
Ok so this is the std::experi...ve_and_drop(3) page from the C++ Standard Library manual, bestie. β¨
π Synopsis π
void arrive_and_drop(); (concurrency TS)
You arrive at the flex_barrierβs synchronization point and remove the current thread from the set of participating threads. π
It is unspecified whether this function blocks until the completion phase has ended. If the function blocks, the calling thread may be chosen to execute the completion phase. π
π¨ The behavior is undefined if the calling thread is not in the set of participating threads of this flex_barrier. Not a vibe. Do not do that.
Calls to arrive_and_drop synchronizes with the start of the completion phase of the flex_barrier. If the call blocks, then 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. periodt. π₯
πΈ Exceptions πΈ
Throws nothing. literally nothing. π
π¦ Notes π¦
The completion phase will be executed even if every participating thread calls arrive_and_drop. π
After a thread calls arrive_and_drop on a flex_barrier, it cannot call any member function on that barrier except for the destructor, even if the function object invoked by the completion phase returns a positive value. π That barrier is done with that thread, iykyk.
π See also π
arrive_and_waitβ arrive at the synchronization point and block (public member function)
Source/version/date sign-off: this page came from http://cppreference.com, version/date 2024.06.10, and the page name is std::experi...ve_and_drop(3). Bye bestie, go synchronize responsibly πππ¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms