Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsound: AtomSetOnce<T>: Sync should require T: Send + Sync #19

Open
yvt opened this issue Oct 9, 2021 · 0 comments
Open

Unsound: AtomSetOnce<T>: Sync should require T: Send + Sync #19

yvt opened this issue Oct 9, 2021 · 0 comments

Comments

@yvt
Copy link

yvt commented Oct 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant