Sign in Join
FPDoc Onlineexperiment

InterlockedIncrement function

In unit System

Thread-safe increment.

Declaration

pascal
function InterlockedIncrement(var Target: LongInt): LongInt

Description

InterLockedIncrement increments 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.