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以降) | |
ロックオブジェクトの内部状態を交換します。
目次 |
パラメータ
| other | - | 状態を交換するためのロック |
戻り値
(なし)
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(C++14)
|
std::swap
アルゴリズムを特殊化
(関数テンプレート) |