InterlockedExchange function
Exchange 2 integers in a thread-safe way.
Declaration
function InterlockedExchange(var Target: LongInt; Source: LongInt)
: LongIntDescription
InterLockedExchange stores
Source in
Target and returns the old value of
Target.
This is done in a thread-safe way, i.e., only one processor is accessing the
Target variable at a time.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
