Atomic operations library
提供:cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
アトミックライブラリがロックレス並行プログラミングを可能にする、きめ細かいアトミック操作のためのコンポーネントを提供します。各アトミックな操作には、同じオブジェクトを含む任意の他のアトミック操作につきましては不可分である。アトミックオブジェクトは、データ競合の自由だけC + +のオブジェクトであり、つまり、1つのスレッドが別のスレッドがそこから読み取っている間、動作が明確に定義された原子に書き込みをしようとする.
Original:
The atomic library provides components for fine-grained atomic operations allowing for lockless concurrent programming. Each atomic operation is indivisible with regards to any other atomic operation that involves the same object. Atomic objects are the only C++ objects free of data races; that is, if one thread writes to an atomic while another thread reads from it, the behavior is well-defined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Defined in header
<atomic> | |
Original: Atomic types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
アトミッククラステンプレートとbool、積分、およびポインタ型を特殊 Original: atomic class template and specializations for bool, integral, and pointer types 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: checks if the atomic type's operations are lock-free The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |
Original: Operations on atomic types 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 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. (関数テンプレート) |
Original: Flag type and operations 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にフラグを設定し、その前の値を返します Original: atomically sets the flag to true and returns its previous value 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) |
アトミックfalseにフラグの値が設定されます Original: atomically sets the value of the flag to false The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (機能) |
Original: Initialization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(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) |
initializes an std::atomic_flag to false (マクロ定数) |
Original: Memory synchronization ordering 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: 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. (機能) |