Re:There's No Such Thing as “Implicitly Atomic”
by _nalply on Thursday October 05, 2023 @04:34PM
(#37783948)
I wanted to avoid unsafe.
Because unsafe introduces conceptual complications and it seemed to be simpler to avoid that in an example.
I could have used a Mutex then cast the `&Mutex` to `&mut Mutex` so that I could call `.get_mut()`. But this didn't seem simpler.