I am using the CMPXCHG assembler instruction in some inline assembler in a C routine. Intel doc says I need to
use the LOCK prefix with the CMPXCHG instruction to
make it atomic. How do I do that? LOCK seems to be
an instruction in the doc, but is invalid in the inline
assembler. I'm using VC++ 5.0.