atomic_flag_test_and_set 関数
memory_order_seq_cstmemory_orderに適用 trueへの atomic_flag のオブジェクトの bool のフラグを設定します。
inline bool atomic_flag_test_and_set(
volatile atomic_flag *Flag,
) _NOEXCEPT;
inline bool atomic_flag_test_and_set(
atomic_flag *Flag,
) _NOEXCEPT;
パラメーター
- Flag
atomic_flag オブジェクトへのポインター。
戻り値
Flag の初期値になります。
必要条件
ヘッダー: の分割
名前空間: std