| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Compare pointers in an atomic operation
Source position: systemh.inc line 1460
function InterlockedCompareExchangePointer(  | 
var Target: Pointer;  | 
NewValue: Pointer;  | 
Comperand: Pointer  | 
):Pointer;  | 
InterlockedCompareExchangePointer compares Comparand with Target. if they are equal, replaces Target with NewValue. This is done in a single atomic operation.
  | 
Conditional exchange  |