std::atomic_store, std::atomic_store_explicit
提供:cppreference.com
|
|
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. |
| Defined in header <atomic>
|
||
| template< class T > void atomic_store( std::atomic<T>* obj, T desr ); |
(1) | (C + + 11以来) |
| template< class T > void atomic_store( volatile std::atomic<T>* obj, T desr ); |
(2) | (C + + 11以来) |
| template< class T > void atomic_store_explicit( std::atomic<T>* obj, T desr, |
(3) | (C + + 11以来) |
| template< class T > void atomic_store_explicit( volatile std::atomic<T>* obj, T desr, |
(4) | (C + + 11以来) |
アトミック
3-4) objたかのようにdesrの値を持つobj->store(desr)が指す値を置き換えますOriginal:
Atomically replaces the value pointed to by
obj with the value of desr as if by obj->store(desr)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.
アトミック
objたかのようにdesrの値を持つobj->store(desr, order)が指す値を置き換えますOriginal:
Atomically replaces the value pointed to by
obj with the value of desr as if by obj->store(desr, order)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.
目次 |
[編集] パラメータ
| obj | - | 変更するアトミックオブジェクトへのポインタ
Original: pointer to the atomic object to modify The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| desr | - | 原子オブジェクトに格納する値
Original: the value to store in the atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| order | - | メモリ同期は、この操作の順序:のみstd::memory_order_relaxed、std::memory_order_releaseとstd::memory_order_seq_cst許可されています.
Original: the memory synchronization ordering for this operation: only std::memory_order_relaxed, std::memory_order_release and std::memory_order_seq_cst are permitted. 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.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例外
[編集] も参照してください
| (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. (パブリックメンバ関数of std::atomic)
|
| (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) |
与えられたアトミック操作用のメモリ順序の制約を定義しています 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です) |
| std::shared_ptrためのアトミック操作を専門としています Original: specializes atomic operations for std::shared_ptr The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
| C documentation for atomic_store, atomic_store_explicit
| |