Exchange

<< Click to Display Table of Contents >>

Navigation:  Classes > TIWInterlocked > Methods >

Exchange

SIGNATURE=IW.Common.Interlocked.TIWInterlocked.Exchange@Pointer@Pointer

 

ETYPE=Method

 

Declaration:

Delphi:

public class function Exchange(var Target: Pointer; Value: Pointer): Pointer; overload; static;

C++:

public: static __fastcall void * Exchange(void * Target, void * Value);

 

Description: Sets a 32-bit variable to the specified value as an atomic operation returns the initial value of the Target parameter