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]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to