首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::cv_status

Defined in header <condition_variable>

?

?

enum class cv_status;

?

(since C++11)

范围枚举std::cv_status描述是否由于超时而返回时间等待。

std::cv_statuswait_forwait_until方法std::condition_variablestd::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)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com