page =
url = https://quuxplusone.github.io/blog
arthur o'dwyer – stuff mostly about c++
antipatterns c++-learner-track concurrency slogans
During my CppCon 2020 talk “Back to Basics: Concurrency,” someone asked, “Do we ever need to use
?” To which I said, “No. Please don’t use
for anything ever.” This was perhaps a bit overstated, but at least in the context of basic concurrency it was accurate. To describe the role of
in C and C++, I often use the following slogan:
Marking a variable as
means that reads and writes to that variable really happen.
If you don’t know what this means, then you shouldn’t use
antipatterns c++-style holy-wars pitfalls