_InterlockedIncrement

9/7/2007

This function performs an atomic addition of an increment value to an addend variable. The function prevents more than one thread from using the same variable simultaneously

Syntax

InterlockedIncrement(
  PLONG Addend
);

Parameters

  • Addend
    [in] Value to be incremented.

Return Values

None.

Remarks

The interlocked functions provide a simple mechanism for synchronizing access to a variable that is shared by multiple threads.

The threads of different processes can use this mechanism if the variable is in shared memory.

Requirements

Routine Required header Architecture

_interlockedIncrement

<winnt.h>

MIPS16, MIPSII, MIPSIII, MIPS IV, MIPS 32

See Also

Reference

Intrinsic Functions for MIPS Microprocessors