名前空間
変種
操作

std::swap(std::unique_lock)

提供: cppreference.com
< cpp‎ | thread‎ | unique lock
2015年11月30日 (月) 07:01時点におけるP12bot (トーク | 投稿記録)による版

 
 
スレッドサポートライブラリ
スレッド
(C++11)
(C++20)
(C++20)
this_thread 名前空間
(C++11)
(C++11)
(C++11)
相互排他
(C++11)
汎用ロック管理
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
条件変数
(C++11)
セマフォ
ラッチとバリア
(C++20)
(C++20)
フューチャー
(C++11)
(C++11)
(C++11)
(C++11)
 
 
template< class Mutex >

void swap( unique_lock<Mutex> &lhs,

           unique_lock<Mutex> &rhs );
std::swapstd::unique_lockアルゴリズムを専門としています。 lhsのそれとの交流rhsの状態を。効果的にlhs.swap(rhs)呼び出し.
Original:
Specializes the std::swap algorithm for std::unique_lock. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

パラメータ

lhs, rhs -
その状態をスワップするためのラッパーをロックします
Original:
lock wrappers whose states to swap
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

値を返します

(なし)

例外

noexcept 指定:  
noexcept
  

参照

別の std::unique_lock と状態を入れ替えます
(パブリックメンバ関数) [edit]