std::cv_status
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++20)
(C++26)
(C++26)
(C++20)
(C++26)
(C++20)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)
cv_status
(C++11)
(C++20)(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++26)
(C++26)
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)
(C++11)(deprecated in C++26)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++26)(C++26)
(C++26)(C++26)
(C++11)
(C++20)(C++20)
(C++20)
(C++20)
(C++11)(C++11)
(C++11)(C++11)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
Defined in header
<condition_variable>
enum class cv_status {
(since C++11)
no_timeout,
timeout
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
member functions of std::condition_variable and std::condition_variable_any .
[edit] Member constants
Enumerator
Meaning
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
blocks the current thread until the condition variable is awakened or after the specified timeout duration
(public member function of
(public member function of
std::condition_variable
) [edit]
blocks the current thread until the condition variable is awakened or after the specified timeout duration
(public member function of
(public member function of
std::condition_variable_any
) [edit]
blocks the current thread until the condition variable is awakened or until specified time point has been reached
(public member function of
(public member function of
std::condition_variable
) [edit]
blocks the current thread until the condition variable is awakened or until specified time point has been reached
(public member function of
(public member function of
std::condition_variable_any
) [edit]