ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Threading.TJamInterlocked.IntfExchange
Syntax
Pascal
class function IntfExchange<T:IInterface>(var pIntf; const pValue: T): T; static;
Parameters 
Description 
var pIntf 
The interface variable or member that should be assigned. 
const pValue: T 
The new interface value that should get assigned. 

The old value of pIntf.

Assigns an interface to a variable and returns the previous interface (if assigned) in an atomic and so threadsafe operation