std::shared_lock<Mutex>::swap

< cpp‎ | thread‎ | shared lock
template< class Mutex >
void swap( shared_lock<Mutex>& other ) noexcept;
(C++14 起)

交换锁对象的内部状态。

参数

other - 要交换状态的锁

返回值

(none)

示例

参阅

std::swapshared_lock 的特化
(函数模板)