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
(
)
;
|
(C++20以降) | |
counting_semaphore
オブジェクトを破棄します。
注記
デストラクタを安全に呼び出すことができるのは、すべてのスレッドが通知された場合のみです。プログラマは、デストラクタの実行が開始された後にいかなるスレッドも * this を待機しようとしないことを保証しなければなりません。デストラクタは待機中のスレッドを通知したり解放したりしません。