L12 spinlock code wrong comparison
Closed this issue · 0 comments
jzarnett commented
Should be my_lock.compare_and_swap(false, true, Ordering::SeqCst) == true
instead of my_lock.compare_and_swap(false, true, Ordering::SeqCst) == false
Thanks to the anonymous student who reported it on Piazza.