##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::cv_status

From cppreference.com
< cpp‎ | thread

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.

### [edit] 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

### [edit] See also

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`) [edit]
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`) [edit]
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`) [edit]
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`) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/thread/cv_status&oldid=62967"