P99
|
This implementation uses the xchgl
instruction that has been implemented since the early days of i386.
This instruction has an implicit lock prefix and no further OS support is needed to make it lock-free.
asm
extension of gcc for inline assembler.