std::cv_status
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <condition_variable> 中定义
|
||
enum class cv_status; |
(C++11 起) | |
。范围的列举
std::cv_status
描述返回,因为超时或不,是否定时的等待.原文:
The scoped enumeration
std::cv_status
describes whether a timed wait returned because of timeout or not.。
std::cv_status
使用由wait_for
wait_until
方法std::condition_variable和std::condition_variable_any.原文:
std::cv_status
is used by the wait_for
and wait_until
methods of std::condition_variable and std::condition_variable_any.[编辑] 。会员常数。
。常数。
|
Explanation |
no_timeout
|
。
notify_all ,notify_one ,或不合逻辑的条件变量被惊醒了。 原文: the condition variable was awakened with notify_all , notify_one , or spuriously |
timeout
|
。条件变量被惊醒的超时期满。
原文: the condition variable was awakened by timeout expiration |
[编辑] 。另请参阅。
的条件变量阻塞当前线程,直到被唤醒或在指定的超时时间 原文: blocks the current thread until the condition variable is woken up or after the specified timeout duration (公共成员函数of std::condition_variable )
| |
的条件变量阻塞当前线程,直到被唤醒或在指定的超时时间 原文: blocks the current thread until the condition variable is woken up or after the specified timeout duration (公共成员函数of std::condition_variable_any )
| |
阻止当前线程,直到条件变量被唤醒,或直至已经达到指定的时间点 原文: blocks the current thread until the condition variable is woken up or until specified time point has been reached (公共成员函数of std::condition_variable )
| |
阻止当前线程,直到条件变量被唤醒,或直至已经达到指定的时间点 原文: blocks the current thread until the condition variable is woken up or until specified time point has been reached (公共成员函数of std::condition_variable_any )
|