|
- std::future - cppreference. com
The class template std::future provides a mechanism to access the result of asynchronous operations: 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
- std::shared_future lt;T gt;:: wait - Reference
Calling wait on the same std::shared_future from multiple threads is not safe; the intended use is for each thread that waits on the same shared state to have a copy of a std::shared_future [ edit ] Example
- std::future lt;T gt;:: future - en. cppreference. com
Constructs a std::future with the shared state of other using move semantics After construction, other valid ( ) == false 3) std::future is not CopyConstructible
- std::future lt;T gt;::valid - cppreference. com
It is valid to move from a future object for which valid() is false Contents 1 Parameters; 2 Return value;
- std::shared_future lt;T gt;::shared_future - cppreference. com
2) Constructs a shared future that refers to the same shared state, if any, as other 3,4) Transfers the shared state held by other to * this After the construction, other valid ( ) == false , and this - > valid ( ) returns the same value as other valid ( ) would have returned before the construction
|
|
|