Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.62 KB

interlockedaddlargestatistic.md

File metadata and controls

55 lines (37 loc) · 1.62 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: _InterlockedAddLargeStatistic
_InterlockedAddLargeStatistic
09/02/2019
_InterlockedAddLargeStatistic
_InterlockedAddLargeStatistic_cpp
_InterlockedAddLargeStatistic intrinsic
InterlockedAddLargeStatistic intrinsic
2802e74b-bcee-46e4-b562-894908d44409

_InterlockedAddLargeStatistic

Microsoft Specific

Performs an interlocked addition in which the first operand is a 64-bit value.

Syntax

long _InterlockedAddLargeStatistic(
   __int64 volatile * Addend,
   long Value
);

Parameters

Addend
[in, out] A pointer to the first operand to the add operation. The value pointed to is replaced by the result of the addition.

Value
[in] The second operand; value to add to the first operand.

Return value

The value of the second operand.

Requirements

Intrinsic Architecture
_InterlockedAddLargeStatistic x86

Header file <intrin.h>

Remarks

The _InterlockedAddLargeStatistic intrinsic isn't atomic, because it's implemented as two separate locked instructions. An atomic 64-bit read that occurs on another thread during the execution of the intrinsic could result in a read of an inconsistent value.

_InterlockedAddLargeStatistic behaves as a read-write barrier. For more information, see _ReadWriteBarrier.

END Microsoft Specific

See also

Compiler intrinsics
Conflicts with the x86 Compiler