Introduction - If you have any usage issues, please Google them yourself
3.4.1 The use of Win32 interlocked operations the are. P.58 the most commonly used functions InterlockedIncrement and Interlockedlncrerment. The procedures list 3-6 GoodCount, and it is a new version of the program in Listing 3-5 instances BadCourt. GoodCount use InterlockedIncrement to complete the global variables automatically increase, it can run on all Windows 2000 systems. Program the Listing 3-6 GoodCount program, it shows the correct way to shared global data