atom icon indicating copy to clipboard operation
atom copied to clipboard

Unsound: `AtomSetOnce<T>: Sync` should require `T: Send + Sync`

Open yvt opened this issue 4 years ago • 0 comments

E.g., if T == Box<Cell<u32>>, AtomSetOnce<Box<Cell<u32>>> could be shared between threads and allow the immutable borrowing of Box<Cell<u32>>, which is Send + !Sync, by multiple threads.

yvt avatar Oct 09 '21 07:10 yvt