InterlockedCompareExchangePointer function
Compare pointers in an atomic operation.
Declaration
function InterlockedCompareExchangePointer(var Target: Pointer;
NewValue: Pointer;
Comperand: Pointer): PointerDescription
InterlockedCompareExchangePointer compares
Comparand with
Target.
if they are equal, replaces
Target with
NewValue.
This is done in a single atomic operation.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
