InterlockedIncrement() vs TInterlocked.Increment()

Giganews Newsgroups
Subject: InterlockedIncrement() vs TInterlocked.Increment()
Posted by:  Adrien Reboisson (adrien.reboissonATgmailDOTc…@example.org)
Date: Wed, 12 Jun 2013

Hi,

Is there any difference between calling InterlockedIncrement(FMyVar)
and TInterlocked.Increment(FMyVar) ?

I need to compile for MacOS X a piece of code I wrote for Windows, and
before replacing the Win32 API by its RTL equivalent, I just wanted to
be sure that both functions have the same semantic.

Best regards,

Adrien

Replies