std::shared_lock<Mutex>::swap
< cpp | thread | shared lock
|
template< class Mutex >
void swap( shared_lock<Mutex>& other ) noexcept; |
(C++14 起) | |
交换锁对象的内部状态。
参数
| other | - | 要交换状态的锁 |
返回值
(无)
示例
| 本节未完成 原因:暂无示例 |
参阅
|
(C++14)
|
特化 std::swap 算法 (函数模板) |
|
template< class Mutex >
void swap( shared_lock<Mutex>& other ) noexcept; |
(C++14 起) | |
交换锁对象的内部状态。
| other | - | 要交换状态的锁 |
(无)
| 本节未完成 原因:暂无示例 |
|
(C++14)
|
特化 std::swap 算法 (函数模板) |