If I have something like this...
volatile long something_global = 0; long some_public_func() { return something_global++; }
Would it b
Windows provides InterlockedIncrement (and InterlockedDecrement) to do what you are asking.