|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <future> | ||
enumclass future_status{ ready, | (since C++11) | |
Specifies state of a future as returned bywait_for andwait_until functions ofstd::future andstd::shared_future.
| Enumerator | Meaning |
deferred | the shared state contains a deferred function, so the result will be computed only when explicitly requested |
ready | the shared state is ready |
timeout | the shared state did not become ready before specified timeout duration has passed |
| waits for the result, returns if it is not available for the specified timeout duration (public member function of std::future<T>)[edit] | |
| waits for the result, returns if it is not available for the specified timeout duration (public member function of std::shared_future<T>)[edit] | |
| waits for the result, returns if it is not available until specified time point has been reached (public member function of std::future<T>)[edit] | |
| waits for the result, returns if it is not available until specified time point has been reached (public member function of std::shared_future<T>)[edit] |