c++ - Can I place a std::atomic<int64> in shared memory and expect atomic operation? -
Does Steady :: Atom play well in shared memory, or is it undefined? It's an easy way to add lockless basic types for shared memory, but I can not believe it is not possible to guarantee nuclear behavior in the context of shared memory.
Why not, you need to allocate it properly and create a shared memory area.
Comments
Post a Comment