std::counting_semaphore<LeastMaxValue>:: ~counting_semaphore
From cppreference.net
<
cpp
|
thread
|
counting semaphore
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::counting_semaphore
| Member functions | ||||
|
counting_semaphore::~counting_semaphore
|
||||
| Operations | ||||
| Constants | ||||
|
~counting_semaphore
(
)
;
|
(seit C++20) | |
Zerstört das
counting_semaphore
Objekt.
Hinweise
Es ist nur sicher, den Destruktor aufzurufen, wenn alle Threads benachrichtigt wurden. Der Programmierer muss sicherstellen, dass keine Threads versuchen, auf * this zu warten, sobald der Destruktor gestartet wurde. Der Destruktor benachrichtigt und gibt keine wartenden Threads frei.