|ptr||Pointer to data to swap atomically.|
|val||Value to swap atomically.|
OSSwapAtomic performs an atomic swap with a value in memory.
This is useful if the value needs to be atomically manipulated by multiple processors.
It does not act as a memory barrier.
2013-05-08 Automated cleanup pass.
2012-07-30 Cleanup Pass.
2012-05-04 Match actual prototype.
2010-08-30 Initial version.