|
<< Click to Display Table of Contents >> Navigation: Classes > TIWInterlocked > Methods > CompareExchange |
SIGNATURE=IW.Common.Interlocked.TIWInterlocked.CompareExchange@Pointer@Pointer@Pointer
ETYPE=Method
Declaration:
Delphi: |
public class function CompareExchange(var Target: Pointer; Value: Pointer; Comparand: Pointer): Pointer; overload; static; |
C++: |
public: static __fastcall void * CompareExchange(void * Target, void * Value, void * Comparand); |
Description: Performs an atomic compare-and-exchange operation on the specified Pointers Compares Target value with the Comparand value. If Target == Comparand => Value is stored in Target The function returns the initial value of the Target parameter