The smart Trick of Atomic That Nobody is Discussing
Objects of atomic forms are the only real C++ objects which might be no cost from info races; that is certainly, if 1 thread writes to an atomic item even though A different thread reads from it, the behavior is well-described.Observe that, for regular use scenarios, you'd most likely use overloaded arithmetic operators or A further established of