CompareExchange64

<< Click to Display Table of Contents >>

Navigation:  Classes > TIWInterlocked > Methods >

CompareExchange64

SIGNATURE=IW.Common.Interlocked.TIWInterlocked.CompareExchange64@Int64@Int64@Int64

 

ETYPE=Method

 

Declaration:

Delphi:

public class function CompareExchange64(var Target: Int64; Value: Int64; Comparand: Int64): Int64; static;

C++:

public: static __fastcall __int64 CompareExchange64(__int64 Target, __int64 Value, __int64 Comparand);

 

Description: Performs an atomic compare-and-exchange operation on the specified Int64 values 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