
std:: async - cppreference.com
2024年10月28日 · The function template std::async runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a std::future that will eventually …
std::promise - cppreference.com
2023年10月23日 · The class template std::promise provides a facility to store a value or an exception that is later acquired asynchronously via a std::future object created by the std::promise object. Note …
std::shared_future - cppreference.com
2023年10月23日 · The class template std::shared_future provides a mechanism to access the result of asynchronous operations, similar to std::future, except that multiple threads are allowed to wait for …
std::future - cppreference.com
2024年3月12日 · An asynchronous operation (created via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation. The …
std::thread - cppreference.com
2023年10月24日 · The class thread represents a single thread of execution. Threads allow multiple functions to execute concurrently. Threads begin execution immediately upon construction of the …
Execution control library (since C++26) - cppreference.com
2025年2月24日 · The library aims to provide vocabulary types for asynchronous operations and to allow the construction of task execution graphs in a simple, composable way.
Concurrency support library (since C++11) - cppreference.com
2025年4月29日 · Futures The standard library provides facilities to obtain values that are returned and to catch exceptions that are thrown by asynchronous tasks (i.e. functions launched in separate …
std::thread::detach - cppreference.com
2021年6月3日 · Separates the thread of execution from the thread object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits. After calling detach *this …
std:: atomic - cppreference.com
2025年2月6日 · Each instantiation and full specialization of the std::atomic template defines an atomic type. If one thread writes to an atomic object while another thread reads from it, the behavior is well …
Coroutines (C++20) - cppreference.com
2025年3月5日 · A coroutine is a function that can suspend execution to be resumed later. Coroutines are stackless: they suspend execution by returning to the caller, and the data that is required to …