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/../error/error_code/../../experimental/concurrency.html below:

Extensions for concurrency - cppreference.com

Extensions for concurrency

The C++ Extensions for Concurrency, ISO/IEC TS 19571:2016, defines the following new components for the C++ standard library:

[edit] Continuations and other extensions for std::future a version of std::future enhanced with continuations and other features
(class template) [edit] a version of std::shared_future enhanced with continuations and other features
(class template) [edit] a modified version of std::promise that uses std::experimental::future
(class template) a modified version of std::packaged_task that uses std::experimental::future
(class template) produces a future that becomes ready when all given futures or shared_futures are ready
(function template) [edit] produces a future that becomes ready when at least one of the given futures or shared_futures is ready
(function template) [edit] produces a future that is ready immediately and holds the given value
(function template) [edit] produces a future that is ready immediately and holds the given exception
(function template) [edit] [edit] Feature test macros

__cpp_lib_experimental_future_continuations

a value of at least 201505 indicates that future::then and other extensions are supported
(macro constant)

__cpp_lib_experimental_latch

a value of at least 201505 indicates that the latch type is supported
(macro constant)

__cpp_lib_experimental_barrier

a value of at least 201505 indicates that barrier type is supported
(macro constant)

__cpp_lib_experimental_atomic_smart_pointers

a value of at least 201505 indicates that the atomic smart pointers are supported
(macro constant) [edit] Merged into C++20

The following components of the Concurrency TS have been adopted into the C++20 standard.

[edit] Latches and barriers single-use thread barrier
(class) [edit] reusable thread barrier
(class) [edit] reusable thread barrier with customizable behavior on completion
(class) [edit] [edit] Atomic smart pointers

These class templates replace the shared_ptr atomic function overloads


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