-
Notifications
You must be signed in to change notification settings - Fork 30
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
Is Tendril really Sync? #24
Comments
No, make_buf_shared (private) uses unguarded Cell::get/set, and it is called from I don't see anything inside safe method |
Thanks for looking into this. I believe the point of #17 was mostly to make |
The same I think the burden of proof should be on the user of Cell to prove that it is correct to use across threads. If we're not sure, tendril is not Sync. |
Right, I agree that However, I think we can keep the Does |
Ah, thanks. Yes that sounds good. There's a lot of code to read and I can't say I reviewed all of it, though. |
#17 introduces optional atomic refcounting and adds:
(
A: Sync
iff it’s atomic.)I think the first impl is OK, but I’m less convinced about the second one. @chris-morgan, what do you think?
The text was updated successfully, but these errors were encountered: