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?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top