std::cv_status
Defined in header <condition_variable> | | |
|---|---|---|
enum class cv_status; | | (since C++11) |
范围枚举std::cv_status描述是否由于超时而返回时间等待。
std::cv_status被wait_for和wait_until方法std::condition_variable和std::condition_variable_any...
成员常数
Constant | Explanation |
|---|---|
no_timeout | the condition variable was awakened with notify_all, notify_one, or spuriously |
timeout | the condition variable was awakened by timeout expiration |
另见
wait_for | blocks the current thread until the condition variable is woken up or after the specified timeout duration (public member function of std::condition_variable) |
|---|---|
wait_for | blocks the current thread until the condition variable is woken up or after the specified timeout duration (public member function of std::condition_variable_any) |
wait_until | blocks the current thread until the condition variable is woken up or until specified time point has been reached (public member function of std::condition_variable) |
wait_until | blocks the current thread until the condition variable is woken up or until specified time point has been reached (public member function of std::condition_variable_any) |
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

