Atomicity of 32bit read on multicore CPU

后端 未结 4 848
温柔的废话
温柔的废话 2021-01-18 09:46

(Note: I\'ve added tags to this question based on where I feel will people will be who are likely to be able to help, so please don\'t shout:))

In my VS 2017 64bit p

4条回答
  •  一生所求
    2021-01-18 10:16

    OK so as it turns out this really isn't necessary; this answer explains in detail why we don't need to use any interlocked operations for a simple read/write (but we do for a read-modify-write).

提交回复
热议问题