Community
Participate
Working Groups
not an int
old = InterlockedCompareExchange( (LPLONG)addr, (LONG)val, (LONG)comp ) ;
*/
#ifdef _WIN64
old = (OSSRegister32 *)InterlockedCompareExchange( (PLONG)&addr, (LONG)&val, (LONG)&comp ) ;
#else
old = (OSSRegister32 *)InterlockedCompareExchange( (PVOID *)&addr, (PVOID)&val, (PVOID)&comp ) ;
#endif
return (OSSRegister32)( *old == comp ) ;
}