std::counting_semaphore<LeastMaxValue>::~counting_semaphore

 
 
线程支持库
线程
(C++11)
(C++20)
(C++20)
this_thread 命名空间
(C++11)
(C++11)
(C++11)
互斥
(C++11)
通用锁管理
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
条件变量
(C++11)
信号量
闩与屏障
(C++20)
(C++20)
future
(C++11)
(C++11)
(C++11)
(C++11)
 
 
~counting_semaphore();
(C++20 起)

销毁 counting_semaphore 对象。

若任何线程在此信号量上的同时调用任何其他成员函数,则行为未定义。这包括在 acquire()try_acquire_for()try_acquire_until() 中阻塞。