[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

InterLockedExchangeAdd

Thread-safe exchange of 2 values

Declaration

Source position: systhrdh.inc line 39

function InterLockedExchangeAdd(

  var Target: LongInt;

  Source: LongInt

):LongInt;

Description

InterlockedDecrement adds to Target the value of Source in a thread-safe way, and returns the old value of Target

See also

InterlockedIncrement

  

Thread-safe integer increment.

InterlockedDecrement

  

Thread-safe integer decrement

InterlockedExchange

  

Thread-safe exchange of 2 values.