LONG __cdecl InterlockedCompareExchange(
__inout LONG volatile *Destination,
__in LONG Exchange,
__in LONG Comparand
);
返回值
该函数返回目的地参数的初始值。为什么InterlockedCompareExchange没有返回更改值?
只是好奇。
为什么InterlockedCompareExchange返回初始值值?他们设计的理由是否有理由?
如果你给我多一点解释会更好。无论如何,我终于明白了。谢谢。 – Benjamin