_InterlockedXor, _InterlockedXor64
Microsoft Specific
Used to perform an atomic operation (in this case, the exclusive or XOR operation) on a variable shared by multiple threads.
long _InterlockedXor( long volatile * Value, long Mask ); long _InterlockedXor_acq( long volatile * Value, long Mask ); long _InterlockedXor_rel( long volatile * Value, long Mask ); char _InterlockedXor8( char volatile * Value, char Mask ); char _InterlockedXor8_acq( char volatile * Value, char Mask ); char _InterlockedXor8_rel( char volatile * Value, char Mask ); short _InterlockedXor16( short volatile * Value, short Mask ); short _InterlockedXor16_acq( short volatile * Value, short Mask ); short _InterlockedXor16_rel( short volatile * Value, short Mask ); __int64 _InterlockedXor64( __int64 volatile * Value, __int64 Mask ); __int64 _InterlockedXor64_acq( __int64 volatile * Value, __int64 Mask ); __int64 _InterlockedXor64_rel( __int64 volatile * Value, __int64 Mask );
|
Intrinsic |
Architecture |
|---|---|
|
_InterlockedXor |
x86, IPF, x64 |
|
_InterlockedXor_acq |
IPF |
|
_InterlockedXor_rel |
IPF |
|
_InterlockedXor8 |
x86, IPF, x64 |
|
_InterlockedXor8_acq |
IPF |
|
_InterlockedXor8_rel |
IPF |
|
_InterlockedXor16 |
x86, IPF, x64 |
|
_InterlockedXor16_acq |
IPF |
|
_InterlockedXor16_rel |
IPF |
|
_InterlockedXor64 |
IPF, x64 |
|
_InterlockedXor64_acq |
IPF |
|
_InterlockedXor64_rel |
IPF |
Header file <intrin.h>
The number in the name of each function specifies the bit size of the arguments.
These functions behave as read-write memory barriers. For more information, see _ReadWriteBarrier.
The IPF-specific _InterlockedXor_acq, _InterlockedXor8_acq, _InterlockedXor16_acq, and _InterlockedXor64_acq intrinsic functions are the same as the corresponding functions without the acq suffix except that the operation is performed with acquire semantics, which is useful when entering a critical section.
The _InterlockedXor_rel, _InterlockedXor8_rel, _InterlockedXor16_rel, and _InterlockedXor64_rel intrinsic functions are the same as the corresponding functions without the rel suffix except that the operation is performed with release semantics, which is useful when leaving a critical section.