Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
C++ Standard Library
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Thread support library=== Components that C++ programs may use for threading and concurrent programming. {| class="wikitable" ! Name !! Description |- | {{code|<barrier>}} || Added in [[C++20]]. Provides <code>std::barrier</code>, a reusable thread barrier. |- | {{code|<future>}} || Added in [[C++11]]. In 32.9.1-1, this section describes components that a C++ program can use to retrieve in one thread the result (value or exception) from a function that has run in the same thread or another thread. |- | {{code|<hazard_pointer>}} || Added in [[C++26]]. Provides [[Hazard pointer|<code>std::hazard_pointer</code>]]. |- | {{code|<latch>}} || Added in [[C++20]]. Provides <code>std::latch</code>, a single-use thread barrier. |- | {{code|<mutex>}} || Added in [[C++11]]. In 32.5-1, this section provides mechanisms for mutual exclusion: mutexes, locks, and call once. |- | {{code|<rcu>}} || Added in [[C++26]]. Provides [[Read-copy-update|read-copy-update mechanisms]]. |- | {{code|<shared_mutex>}} || Added in [[C++14]]. Provides facility for shared mutual exclusion. |- | {{code|<semaphore>}} || Added in [[C++20]]. Provides [[Semaphore (programming)|semaphore]] that models non-negative resource count. |- | {{code|<stop_token>}} || Added in [[C++20]]. In 32.3.1-1, this section describes components that can be used to asynchronously request that an operation stops execution in a timely manner, typically because the result is no longer required. Such a request is called a stop request. |- | {{code|<thread>}} || Added in [[C++11]]. Provide class and namespace for working with threads. |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)