InterlockedXor routine
The InterlockedOr routine atomically computes a bitwise exclusive OR operation.
Syntax
LONG InterlockedXor(
_Inout_ LONG volatile *Destination,
_In_ LONG Value
);
Parameters
- Destination [in, out]
-
A pointer to the variable to be exclusive ORed with Value. The result of the operation is stored in the variable.
- Value [in]
-
Specifies the value to be exclusive ORed with the variable that is pointed to by Destination.
Return value
InterlockedXor returns the original value stored in the variable pointed to by Destination.
Remarks
InterlockedXor atomically computes *Destination^=Value.
Interlocked operations cannot be used on non-cached memory.
Requirements
|
Header |
|
|---|---|
|
IRQL | Any level |
See also
Send comments about this topic to Microsoft
Build date: 5/22/2013