Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
c22b22d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at mvdnes@c22b22d
c22b22d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging mvdnes/rust/spinlock_error = c22b22d into auto
c22b22d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mvdnes/rust/spinlock_error = c22b22d merged ok, testing candidate = ca56650
c22b22d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/281
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/282
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/281
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/282
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/284
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/285
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/284
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/290
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/285
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/284
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/287
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/285
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/285
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/286
c22b22d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = ca56650