Exception of CP.100 refined to include the "sequentially consistent memory model" only

Atomic variables are safe with the sequentially consistent memory model (memory_order_seq_cst) only. Weakly ordered atomics cannot be considered safe for mainstream use. The exception clause of CP.100 refined to include the "sequentially consistent memory model" only.

cst added to dictionary

For std::memory_order_seq_cst, which is defined in <atomic>.
This commit is contained in:
Eliyahu Ravuna 2016-10-04 20:13:43 +03:00
parent 6767413118
commit 5f66e004d8
2 changed files with 2 additions and 1 deletions

View File

@ -12570,7 +12570,7 @@ Read up on the ABA problem.
##### Exception
[Atomic variables](#???) can be used simply and safely.
[Atomic variables](#???) can be used simply and safely, as long as you are using the sequentially consistent memory model (memory_order_seq_cst), which is the default.
##### Note

View File

@ -95,6 +95,7 @@ cpp
cpp98
CppCon
CRTP
cst
cstdarg
cstring
cstylecast