If you need a reasonably fast Mutex but don't want to pull in the whole parking_lot as a dependency:https://github.com/stjepang/simple-mutex …
Exactly, the atomic state is used to protect the cell. When you use simple-mutex from another crate, no matter what you attempt to do through its public safe API, you will always get valid access to inner data.
-
-
Have used AtomicPtr for data passing, but good to know a separate atomic and a UnsafeCell works too! Still haunted by old Java behaviors so want to understand internals. Thanks again!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.