std::future_status
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <future>
|
||
| enum class future_status { ready, |
(C++11 起) | |
Specifies state of a future as returned by wait_for and wait_until functions of std::future and std::shared_future.
| 。常数。
Original: Constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Explanation |
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 (公共成员函数of std::future)
| |
| waits for the result, returns if it is not available for the specified timeout duration (公共成员函数of std::shared_future)
| |
| 等待结果,则返回,如果它是不可用,直到已达到指定的时间点 Original: waits for the result, returns if it is not available until specified time point has been reached The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数of std::future)
| |
| 等待结果,则返回,如果它是不可用,直到已达到指定的时间点 Original: waits for the result, returns if it is not available until specified time point has been reached The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数of std::shared_future)
| |