opdenkamp/xbmc — comment on commit 685069db175b0548696f54a0a383fa519a922a30
File:  line 0
By tsp:

I agree. It would be better. On windows InterlockedCompareExchange/InterlockedCompareExchange64 could be used and on MacOS OSAtomicCompareAndSwap32Barrier/OSAtomicCompareAndSwap64Barrier.