Showing results for September 15, 2004 - The Old New Thing

Sep 15, 2004
Post comments count0
Post likes count1

Interlocked operations don’t solve everything

Raymond Chen
Raymond Chen

Interlocked operations are a high-performance way of updating DWORD-sized or pointer-sized values in an atomic manner. Note, however, that this doesn't mean that you can avoid the critical section. For example, suppose you have a critical section that protects a variable, and in some other part of the code, you want to update the variable atomi...

Code