Namespaces
Variants
Actions

std::condition_variable_any::condition_variable_any

From cppreference.com
 
 
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
Cooperative cancellation
(C++20)
(C++20)
Mutual exclusion
(C++11)
(C++17)
Generic lock management
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(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)
(C++11)
(C++11)
Safe reclamation
(C++26)
(C++26)
(C++26)
(C++26)
Hazard pointers
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)(deprecated in C++26)
 
 
condition_variable_any();
(1) (since C++11)
condition_variable_any( const condition_variable_any& ) = delete;
(2) (since C++11)
1) Constructs an object of type std::condition_variable_any.
2) Copy constructor is deleted.

[edit] Parameters

(none)

[edit] Exceptions

1) May throw std::system_error with std::error_condition equal to std::errc::operation_not_permitted if the thread has no privilege to create a condition variable, std::errc::resource_unavailable_try_again if a non-memory resource limitation prevents this initialization, or another implementation-defined value.

Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

DR Applied to Behavior as published Correct behavior
LWG 2092 C++11 the error condition for resource_unavailable_try_again was wrong corrected

[edit] See also

C documentation for cnd_init

AltStyle によって変換されたページ (->オリジナル) /