Namespaces
Variants

std::counting_semaphore<LeastMaxValue>:: ~counting_semaphore

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
~counting_semaphore ( ) ;
(C++20부터)

counting_semaphore 객체를 파괴합니다.

참고 사항

소멸자를 호출하는 것은 모든 스레드가 통지를 받은 경우에만 안전합니다. 프로그래머는 소멸자가 시작된 후 어떤 스레드도 * this 에 대해 대기하려고 시도하지 않도록 보장해야 합니다. 소멸자는 대기 중인 어떤 스레드도 통지하거나 해제하지 않습니다.