-
-
Notifications
You must be signed in to change notification settings - Fork 70
implement Send + Sync for PhysicalMapping #101
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
implement Send + Sync for PhysicalMapping #101
Conversation
Hmm, I'm not convinced this would be sound. Otoh, I think it could be I think it would be helpful to understand what inspired this change; is it just for maximum permissiveness, or does it solve a problem you have? |
I want to store a |
At the moment
This is not something I think we'd want to encourage - generally if you want a memory mapping to stick around for the entire duration of your system, I'm not sure our |
Ok so if I understood you correctly you're saying that
Why don't you just stick something over |
Yes - sorry that context was probably missing at first.
Yes, that could be a solution in that case - the wrapper would then be responsible for making the overall type
A concern I have is that this is also not totally impossible. For example, when tying Complexity like this is why I've been shying away from adding mutable access to |
That makes sense, thank you for your explanation 👍 In my case I'm storing it behind a |
Cool - I think |
We're not accessing the same |
Ah of course - thanks for explaining. As I said before, I'm a little rusty ;) |
This pr implements
Send + Sync
forPhysicalMapping
and add a test to check for those implementations.