std::cv_status - cppreference.com
Namespaces
Variants

std::cv_status

From cppreference.com
 
 
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
Safe Reclamation
(C++26)
Hazard Pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
Memory ordering
(C++11)(deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
 
Defined in header <condition_variable>
enum class cv_status {
    no_timeout,
    timeout   
};
(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 member functions of std::condition_variable and std::condition_variable_any.

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

See also