InterlockedAdd64
InterlockedAdd64 performs an atomic addition operation on the specified LONGLONG values.
Syntax
LONGLONG InterlockedAdd64(
[in, out] LONG volatile *Addend,
[in] LONGLONG Value
);
Parameters
[in, out] Addend
A pointer to the first operand. This value will be replaced with the result of the operation.
[in] Value
The second operand.
Return Value
The function returns the result of the operation.
Remarks
This function is implemented using a compiler intrinsic where possible. For more information, see the winbase.h header file and _InterlockedAdd64.
This function generates a full memory barrier (or fence) to ensure that memory operations are completed properly.
Requirements
| Minimum supported version | Header |
|---|---|
|
windows.h |
See Also: