help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

InterLockedExchangeAdd

Thread-safe add and exchange of 2 values

Declaration

Source position: line 0

function InterLockedExchangeAdd(

  var Target: LongInt;

  Source: LongInt

):LongInt;

function InterLockedExchangeAdd(

  var Target: Pointer;

  Source: Pointer

):Pointer;

Description

InterlockedDecrement adds to Target the value of Source in a thread-safe way, and returns the old value of Target.This is done in a thread-safe way, i.e., only one processor is accessing the Target variable at a time.

Errors

None.

See also

InterLockedDecrement

  

Thread-safe decrement

InterLockedIncrement

  

Thread-safe increment

InterLockedExchange

  

Exchange 2 integers in a thread-safe way

InterlockedCompareExchange

  

Conditional exchange

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505