What is the difference between InterlockedExchange
and InterlockedExchangePointer
?
Are
if( 0 != InterlockedCompareExchange( ( void** ) &_myVariable
, temp
, 0
) )
and
if( 0 != InterlockedCompareExchangePointer( ( void** ) &_myVariable
, temp
, 0
) )
equivalent?
I have to port code to VC6 which does not know of the Interlocked[...]Pointer
functions.
Edit:
I know from my own experience, that VC6 is extremely buggy and that no one shall use it anymore.
However, I am not a decision-maker and an answer to the original question would be highly appreciated.