Closed jzarnett closed 3 years ago
Should be my_lock.compare_and_swap(false, true, Ordering::SeqCst) == true instead of my_lock.compare_and_swap(false, true, Ordering::SeqCst) == false
my_lock.compare_and_swap(false, true, Ordering::SeqCst) == true
my_lock.compare_and_swap(false, true, Ordering::SeqCst) == false
Thanks to the anonymous student who reported it on Piazza.
Should be
my_lock.compare_and_swap(false, true, Ordering::SeqCst) == true
instead ofmy_lock.compare_and_swap(false, true, Ordering::SeqCst) == false
Thanks to the anonymous student who reported it on Piazza.