tokio-rs / loom

Concurrency permutation testing tool for Rust.
MIT License
2.14k stars 111 forks source link

Add a loom::cell::Cell, which provides a basic wrapper of the loom UnsafeCell #196

Closed thomcc closed 3 years ago

thomcc commented 3 years ago

It isn't too rare to use Cell<T> instead of UnsafeCell<T> if T is Copy. It also is way more compatible with the stdlib API. Wasn't sure what to do for tests here.

thomcc commented 3 years ago

Stable CI failure is a warning that's fixed by #195 (merged)