m-ou-se / rust-atomics-and-locks

Code examples, data structures, and links from my book, Rust Atomics and Locks.
Other
1.33k stars 120 forks source link

Chapter 9 slightly inaccurate description? #28

Open helixbass opened 1 year ago

helixbass commented 1 year ago

Type of error

Minor technical mistake

Location of the error

https://marabos.nl/atomics/building-locks.html#optimizing-further

Description of the error

"After the lock state has changed" - if I'm following correctly then we don't know that the lock state has necessarily changed, either the lock state changed or we did 100 "spins"?