std::cv_status

std::cv_status

Defined in header <condition_variable>
enum class cv_status;
(since C++11)

The scoped enumeration std::cv_status describes whether a timed wait returned because of timeout or not.

std::cv_status is used by the wait_for and wait_until methods of std::condition_variable and std::condition_variable_any.

Member constants

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

See also

blocks the current thread until the condition variable is woken up or after the specified timeout duration
(public member function of std::condition_variable)
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)
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)
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
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/thread/cv_status

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部