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
(
)
;
|
(since C++20) | |
Destroys the
counting_semaphore
object.
Notes
It is only safe to invoke the destructor if all threads have been notified. The programmer must ensure that no threads attempt to wait on * this once the destructor has been started. The destructor does not notify and release any waiting threads.