Why doesn't InterlockedCompareExchange return changed value?
-
29-10-2019 - |
سؤال
LONG __cdecl InterlockedCompareExchange(
__inout LONG volatile *Destination,
__in LONG Exchange,
__in LONG Comparand
);
Return value
The function returns the initial value of the Destination parameter.
Just curious.
Why does InterlockedCompareExchange return initial value? Is there a reason that they designed so?
لا يوجد حل صحيح
لا تنتمي إلى StackOverflow