InterlockedCompareExchange (KERNEL32.@)
LONG InterlockedCompareExchange ( LONG volatile* dest, LONG xchg, LONG compare )
Atomically swap one value with another.
dest | [In/Out] | The value to replace. |
xchq | [In] | The value to be swapped. |
compare | [In] | The value to compare to dest. |
The resulting value of dest.
dest is updated only if it is equal to compare, otherwise no swap is done.
Defined in "winbase.h".
Implemented in "dlls/kernel32/sync.c". source.winehq.org/source/dlls/kernel32/sync.c
Debug channel "sync".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jan 2008.