The CLR guarantees atomic readout of values ββup to the width of the processor. Therefore, if you work on 32 bits, reading int
will be atomic. If you are working on a 64-bit machine, reading long
will be atomic. Ergo, if there Count
is Int32
, no need to block.
This post relates to your question.
source
share