std::shared_lock<Mutex>:: swap
From cppreference.net
<
cpp
|
thread
|
shared lock
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::shared_lock
| Member functions | ||||
| Shared locking | ||||
| Modifiers | ||||
|
shared_lock::swap
|
||||
| Observers | ||||
| Non-member functions | ||||
|
template
<
class
Mutex
>
void swap ( shared_lock < Mutex > & other ) noexcept ; |
(自 C++14 起) | |
交换锁对象的内部状态。
目录 |
参数
| 其他 | - | 用于交换状态的锁 |
返回值
(无)
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
(C++14)
|
特化
std::swap
算法
(函数模板) |