std::atomic_flag_clear, std::atomic_flag_clear_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>
|
||
| void atomic_flag_clear( volatile std::atomic_flag* p ); |
(1) | (C + + 11以来) |
| void atomic_flag_clear( std::atomic_flag* p ); |
(2) | (C + + 11以来) |
| void atomic_flag_clear_explicit( volatile std::atomic_flag* p, std::memory_order order ) |
(3) | (C + + 11以来) |
| void atomic_flag_clear_explicit( std::atomic_flag* p, std::memory_order order ) |
(4) | (C + + 11以来) |
Atomically changes the state of a std::atomic_flag pointed to by p to clear (false).
目次 |
[編集] パラメータ
| p | - | アクセスするstd::atomic_flagへのポインタ
Original: pointer to std::atomic_flag to access The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| order | - | the memory sycnhronization ordering for this operation: only std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire, or std::memory_order_seq_cst are permitted. |
[編集] 値を返します
なし.
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.
[編集] 例外
[編集] 可能な実装
| First version |
|---|
void atomic_flag_clear(volatile std::atomic_flag* p) { p->clear(); } |
| Second version |
void atomic_flag_clear(std::atomic_flag* p) { p->clear(); } |
| Third version |
void atomic_flag_clear_explicit(volatile std::atomic_flag* p, std::memory_order order) { p->clear(order); } |
| Fourth version |
void atomic_flag_clear_explicit(std::atomic_flag* p, std::memory_order order) { p->clear(order); } |
[編集] も参照してください
| (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) |
与えられたアトミック操作用のメモリ順序の制約を定義しています 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 documentation for atomic_flag_clear, atomic_flag_clear_explicit
| |