rust-lang/rust — pull request #15575 by mvdnes (2014-07-10 10:54:09+00:00)
Title: Mistake in AtomicBool spinlock example

The current example of a spinlock was not correct. The lock is actually acquired
when `old == result`. So we only need to deschedule when this is not the case.