std::condition_variable_any::~condition_variable_any
From cppreference.com
< cpp | thread | condition variable any
C++
Concurrency support library
|
|
std::condition_variable_any
Member functions | ||||
condition_variable_any::~condition_variable_any | ||||
Notification | ||||
Waiting | ||||
~condition_variable_any(); |
(since C++11) | |
Destroys the object of type std::condition_variable_any.
Notes
It is only safe to invoke the destructor if all threads have been notified. It is not required that they have exited their respective wait functions: some threads may still be waiting to reacquire the associated lock, or may be waiting to be scheduled to run after reacquiring it.
The programmer must ensure that no threads attempt to wait on *this
See also
C documentation for cnd_destroy
|