Quote Originally Posted by jdarling
I'll have to look into those and see how well they are supported. I also thought of using interlockedincrement and interlockeddecrement, but it seems those are "kernel" methods in Linux only and should not be used in user mode .
I don't believe that's the case. They are assembler functions and implemented in usermode for all platforms.