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



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

InterLockedDecrement

Thread-safe decrement

Declaration

Source position: line 0

function InterLockedDecrement(

  var Target: LongInt

):LongInt;

function InterLockedDecrement(

  var Target: Pointer

):Pointer;

Description

InterLockedDecrement decrements Target with 1 and returns the result. This is done in a thread-safe way. (i.e. only one processor is accessing the variable at a time).

Errors

None.

See also

InterLockedIncrement

  

Thread-safe increment

InterLockedExchange

  

Exchange 2 integers in a thread-safe way

InterLockedExchangeAdd

  

Thread-safe add and exchange of 2 values

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