_InterlockedCompareExchange64

This function is the same as _InterlockedCompareExchange64, using 64-bit integers.

InterlockedCompareExchange64(
  LPLONG Destination,
  LONG Exchange,
  LONG Comparand
);

Parameters

  • Destination
    [out] Address of destination value.
  • Exchange
    [in] Exchange value.
  • Comparand
    [in] Value to compare to Destination.

Return Values

The initial value of Destination.

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Mipsintr.h.

See Also

Common Intrinsic Functions | Intrinsic Functions for MIPS Microprocessors

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.