安裝中文字典英文字典辭典工具!
安裝中文字典英文字典辭典工具!
|
- std::future - cppreference. com
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 creator of the asynchronous operation can then use a variety of methods to query, wait for, or extract a value from the std::future
- std::shared_future - cppreference. com
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 the same shared state Unlike std::future, which is only moveable (so only one instance can refer to any particular asynchronous result), std::shared_future is copyable and multiple shared future objects may
- std::promise - cppreference. com
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 that the std::promise object is meant to be used only once Each promise is associated with a shared state, which contains some state information and a result which may be not yet evaluated, evaluated to a
- Execution control library (since C++26) - cppreference. com
The library aims to provide vocabulary types for asynchronous operations and to allow the construction of task execution graphs in a simple, composable way
- std::stop_token - cppreference. com
The stop_token class provides the means to check if a stop request has been made or can be made, for its associated std::stop_source object It is essentially a thread-safe "view" of the associated stop-state The stop_token can also be passed to the constructor of std::stop_callback, such that the callback will be invoked if the stop_token 's associated std::stop_source is requested to stop
|
|
|