From 5f66e004d80e3ec8bb192930c64f3bd1ce59e6ba Mon Sep 17 00:00:00 2001 From: Eliyahu Ravuna Date: Tue, 4 Oct 2016 20:13:43 +0300 Subject: [PATCH] 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 . --- CppCoreGuidelines.md | 2 +- scripts/hunspell/isocpp.dic | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 222653b..12d5889 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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 diff --git a/scripts/hunspell/isocpp.dic b/scripts/hunspell/isocpp.dic index 1d67fbb..02aadd2 100644 --- a/scripts/hunspell/isocpp.dic +++ b/scripts/hunspell/isocpp.dic @@ -95,6 +95,7 @@ cpp cpp98 CppCon CRTP +cst cstdarg cstring cstylecast