Answer by hauron for What is the memory footprint of std::atomic in C++11, in...
You can check it yourself here: https://godbolt.org/g/6zjJCU - with no optimization turned on, both std::atomic and a regular variable take the same amount of memory.The difference, however, is the...
View ArticleAnswer by Horia Coman for What is the memory footprint of std::atomic in...
According to this reference atomic has a single member of the template type. It also has a specialization for unsigned int, though it doesn't provide that much over the basic type. Memory-wise you...
View ArticleWhat is the memory footprint of std::atomic in C++11, in practice?
A program that I am writing needs to store significant amounts of data (several gigabytes) in ram to be accessed atomically by many threads. std::atomic seems to be a reasonable way to do this, because...
View Article
More Pages to Explore .....