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

Unclear if AtomicBool implements Send #33021

Closed
tbelaire opened this issue Apr 16, 2016 · 2 comments
Closed

Unclear if AtomicBool implements Send #33021

tbelaire opened this issue Apr 16, 2016 · 2 comments

Comments

@tbelaire
Copy link
Contributor

I was looking through all the types, seeing how Send and Sync bounds relate to each other, when I noticed that unlike most other types in sync, in the impl section AtomicBool only says

impl Sync for AtomicBool

without any mention of Send, one way or the other.

I was expecting that like Arc, Cell, and Mutex, there would be an explicit listing of it's Sendness and Syncness.

@retep998
Copy link
Member

Send and Sync only need to be explicitly implemented when they want to be Send and Sync in cases where they wouldn't automatically be Send and Sync. This is either closely related to or a duplicate of #17606

@apasel422
Copy link
Contributor

Closing as duplicate.

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

3 participants