ATOMIC_FLAG_INIT
提供: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>
|
||
| #define ATOMIC_FLAG_INIT /* implementation-defined */ |
||
状態をクリアするstd::atomic_flagを初期化するために使用できる式を定義します。フラグは静的記憶域期間を持つ場合、この初期化は静的です.
Original:
Defines the expression which can be used to initialize std::atomic_flag to clear state. If the flag has static storage duration, this initialization is static.
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.
[編集] 例
#include <atomic> std::atomic_flag static_flag = ATOMIC_FLAG_INIT; int main() { std::atomic_flag automatic_flag = ATOMIC_FLAG_INIT; std::atomic_flag another_flag(ATOMIC_FLAG_INIT); }
[編集] も参照してください
| (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. (クラス) |