Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-03

InterLockedIncrement wrapping etc.

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

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]

Reply by email