Quantcast
Channel: What is the memory footprint of std::atomic in C++11, in practice? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

What 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
Browsing latest articles
Browse All 3 View Live




Latest Images