ExpInterlockedCompareExchange64
This function compares one integer variable to another and, if they are equal, sets the first variable to a caller-supplied value.
LONGLONG ExpInterlockedCompareExchange64(
PLONGLONG Destination,
PLONGLONG Exchange,
PLONGLONG Comparand
);
Parameters
- Destination
[out] Pointer to an integer to be compared with Comparand. - Exchange
[in] Pointer to an integer that will replace the one at Destination, if the comparison results in equality. - Comparand
[in] Pointer to an integer with which the value at Destination will be compared.
Return Values
Returns the value of the variable at Destination when the call occurred.
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.