Sign in Join
FPDoc Onlineexperiment

InterlockedDecrement function

In unit System

Thread-safe decrement.

Declaration

pascal
function InterlockedDecrement(var Target: LongInt): LongInt

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.