名前空間
変種
操作

atomic_init

提供: cppreference.com
< c‎ | atomic

Defined in header <stdatomic.h>
void atomic_init( volatile A* obj, C desired );
(C11およびそれ以降)
objectでデフォルトに構築アトミックオブジェクトdesiredを初期化します。関数はアトミックではありません:別のスレッドからの同時アクセスも、アトミック操作を介して、データの競合です.
Original:
Initializes the default-constructed atomic object object with the value desired. The function is not atomic: concurrent access from another thread, even through an atomic operation, is a data race.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
これは、すべての原子オブジェクト·タイプに対して定義汎用関数です。 Aアトミックオブジェクトの型である、CAに対応する非原子型で.
Original:
This is a 汎用関数 defined for all atomic object types. A is the type of an atomic object, C is the non-atomic type corresponding to A.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] パラメータ

obj -
初期化するアトミックオブジェクトへのポインタ
Original:
pointer to an atomic object to initialize
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
desired -
と不可分なオブジェクトを初期化する値
Original:
the value to initialize atomic object with
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.

[編集] も参照してください

新しい原子オブジェクトを初期化します
Original:
initializes a new atomic object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数マクロ) [edit]
C++ documentation for atomic_init