std::shared_lock<Mutex>::~shared_lock

< cpp‎ | thread‎ | shared lock
~shared_lock();
(C++14 起)

销毁锁。

*this 有关联互斥( mutex() 返回非空指针)且获得了其所有权( owns() 返回 true ) ,则通过调用 unlock_shared() 解锁互斥。