std::future_status
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <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.
。常数。
|
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 )
| |
等待结果,则返回,如果它是不可用,直到已达到指定的时间点 原文: waits for the result, returns if it is not available until specified time point has been reached (公共成员函数of std::future )
| |
等待结果,则返回,如果它是不可用,直到已达到指定的时间点 原文: waits for the result, returns if it is not available until specified time point has been reached (公共成员函数of std::shared_future )
|