How should I implement these 64-bit interlocked functions on WinXP? Of course I can use full mutex, but I think it’s needlessly heavyweight for this task. There must be some better way.
How should I implement these 64-bit interlocked functions on WinXP? Of course I can
Share
You shouldn’t. This is much more complex than you think.
If you insist, your best bet is to use a critical section to make sure you get the barriers right.
If you really think a critical section is too heavy weight, read up on memory barriers