Namespaces
Variants

std::condition_variable_any:: ~condition_variable_any

From cppreference.net

Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
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
~condition_variable_any ( ) ;
(C++11 이후)

std::condition_variable_any 타입의 객체를 파괴합니다.

참고 사항

모든 스레드가 통지된 경우에만 소멸자를 호출하는 것이 안전합니다. 각 스레드가 대기 함수를 벗어날 필요는 없습니다: 일부 스레드는 여전히 관련된 잠금을 재획득하기를 기다리거나, 재획득 후 실행되도록 스케줄링되기를 기다리고 있을 수 있습니다.

프로그래머는 소멸자가 시작된 후에는 어떤 스레드도 * this 에 대해 대기하려고 시도하지 않도록 보장해야 합니다, 특히 대기 중인 스레드들이 루프 내에서 대기 함수를 호출하거나 predicate를 취하는 대기 함수의 오버로드를 사용하는 경우에 더욱 중요합니다.

참고 항목

C 문서 for cnd_destroy