std::condition_variable::condition_variable

From cppreference.com

 
 
Thread support library
Threads
(C++11)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
 
 
condition_variable();
(1) (since C++11)
condition_variable(const condition_variable&) = delete;
(2) (since C++11)

1) Constructs an object of type std::condition_variable.

2) Copy constructor is deleted.

Parameters

(none)

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.

See also