名前空間
変種
操作

「cpp/thread/unique lock/swap2」の版間の差分

提供: cppreference.com
< cpp‎ | thread‎ | unique lock
(Translated from the English version using Google Translate)
 
(1版:Translate from the English version)

2012年10月30日 (火) 20:54時点における版

 
 
スレッドサポートライブラリ
スレッド
(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.

値を返します

(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

例外

noexcept 指定:  
noexcept
  

も参照してください

テンプレート:cpp/thread/unique lock/dcl list swap