アトミック操作ライブラリ
提供: cppreference.com
< cpp
アトミック操作ライブラリは、ロックフリーな並行プログラミングに必要となる高粒度なアトミック操作のためのコンポーネントを提供します。 各アトミック操作は、それと同じオブジェクトを対象とする他のアトミック操作に対して不可分な操作です。 アトミックオブジェクトはデータ競合が発生しません。
| ヘッダ
<atomic> で定義 | ||
アトミック型 | ||
| (C++11) |
atomic クラステンプレートと bool 型、整数型、ポインタ型に対する特殊化 (クラステンプレート) | |
アトミック型の操作 | ||
| (C++11) |
アトミック型の操作がロックフリーかどうかをチェックします (関数テンプレート) | |
| (C++11) (C++11) |
アトミックに非アトミック引数でアトミックオブジェクトの値を置き換えます Original: atomically replaces the value of the atomic object with a non-atomic argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| (C++11) (C++11) |
アトミックアトミックオブジェクトに格納されている値を取得します Original: atomically obtains the value stored in an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| (C++11) (C++11) |
アトミックに非アトミック引数でアトミックオブジェクトの値を置き換え、原子の古い値を返します Original: atomically replaces the value of the atomic object with non-atomic argument and returns the old value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| アトミックに非アトミック引数でアトミックオブジェクトの値を比較し、等しいか、またはアトミックロードする場合しない場合、原子交換を行う Original: atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | ||
| (C++11) (C++11) |
アトミックオブジェクトに非アトミック値を追加し、アトミックの前の値を取得します Original: adds a non-atomic value to an atomic object and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| (C++11) (C++11) |
原子オブジェクトから非アトミック値を減算し、アトミックの前の値を取得します Original: subtracts a non-atomic value from an atomic object and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| (C++11) (C++11) |
論理の結果で、非アトミック引数を持つ原子オブジェクトを置き換え、原子の前の値を取得します Original: replaces the atomic object with the result of logical AND with a non-atomic argument and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| (C++11) (C++11) |
論理的な結果をOR非アトミック引数を持つ原子オブジェクトを置き換え、原子の前の値を取得します Original: replaces the atomic object with the result of logical OR with a non-atomic argument and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| (C++11) (C++11) |
非アトミック引数で排他的論理和の結果と不可分なオブジェクトを置き換え、原子の前の値を取得します Original: replaces the atomic object with the result of logical XOR with a non-atomic argument and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
フラグ型とその操作 | ||
| (C++11) |
ロックフリーブール原子型 Original: the lock-free boolean atomic type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) | |
| アトミックにフラグをtrueに設定し、以前の値を返します (関数) | ||
| (C++11) (C++11) |
アトミックにフラグの値をfalseに設定します (関数) | |
初期化 | ||
| (C++11) |
non-atomic initialization of a default-constructed atomic object (関数テンプレート) | |
| (C++11) |
静的記憶域期間のアトミック変数の定数初期化 Original: constant initialization of an atomic variable of static storage duration The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数マクロ) | |
| (C++11) |
std::atomic_flag を false で初期化します (マクロ定数) | |
メモリ同期順序 | ||
| (C++11) |
与えられたアトミック操作用のメモリ順序の制約を定義しています Original: defines memory ordering constraints for the given atomic operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) | |
| (C++11) |
std::memory_order_consumeの依存関係ツリーから指定されたオブジェクトを削除します Original: removes the specified object from the std::memory_order_consume dependency tree The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| (C++11) |
汎用メモリ順序依存フェンス同期プリミティブ Original: generic memory order-dependent fence synchronization primitive The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
| (C++11) |
スレッドと同じスレッドで実行されるシグナルハンドラの間のフェンス Original: fence between a thread and a signal handler executed in the same thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
[編集] 関連項目
| アトミック操作ライブラリ の C言語リファレンス
| |