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/../../cpp/thread/barrier/arrive_and_drop.html below:

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

void arrive_and_drop();

(since C++20)

Decrements the initial expected count for all subsequent phases by one, and then decrements the expected count for the current phase by one.

This function is executed atomically. The call to this function strongly happens-before the start of the phase completion step for the current phase.

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

[edit] Parameters

(none)

[edit] Return value

(none)

[edit] Exceptions

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

[edit] Notes

This function can cause the completion step for the current phase to start.

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.

[edit] Example

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