[fpc-pascal] InterLockedIncrement wrapping etc.
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Mon Mar 2 15:48:22 CET 2015
Looking at 2.7.1 for i386, InterLockedIncrement() appears to be take a
signed 32-bit as its parameter but to increment as an unsigned and wrap
to zero.
Is this a reliable interpretation in the general case, or if I use it to
e.g. count how many times a thread "spins" are there other cases that I
need to take into account?
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list