about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorMathijs van de Nes <git@mathijs.vd-nes.nl>2014-07-10 11:51:19 +0200
committerMathijs van de Nes <git@mathijs.vd-nes.nl>2014-07-10 11:55:04 +0200
commitc22b22d7b136a0ba27e4c8b5c634d651169684a8 (patch)
tree02c7aed8f7c8b03bdcab0b8492b4a02b71567c67 /src/rustllvm/ExecutionEngineWrapper.cpp
parent6372915a78a12adfbc327aba87225988ae03e7f9 (diff)
downloadrust-c22b22d7b136a0ba27e4c8b5c634d651169684a8.tar.gz
rust-c22b22d7b136a0ba27e4c8b5c634d651169684a8.zip
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.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions