-
Notifications
You must be signed in to change notification settings - Fork 131
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
Question: is IpcSharedMemory currently read-only? #241
Comments
Reading #126 I think not, but I think it should be possible to send same IpcSharedMemory back after inner data was changed. |
A possibility to make this safe is to create a |
But we still have the same problem as |
The idea would be that you could create an This wouldn't allow making, for example, a lock free shared memory queue, but it would help with the case where you want to produce some data into shared memory without copying. |
Ah, that's different use case then described above:
And your proposed solution is similar to what was described in #126 (comment)
|
I couldn't find a way to mutate the contents of shared memory using the existing API. For example
DerefMut
is not implemented.Is this intended, or am I missing something on how to actually do the mutation?
I would like to send some shared memory across process, then mutate it and have the other process see the mutation.
I've tried to do this with
unsafe
code, and I'm actually not sure if that is working or not(I can see the mutation in the process doing it, however I'm still testing if the other process sees it as well).See https://github.com/servo/servo/pull/23909/files#diff-2967b47a1530b8945948650780afabcaR89
The text was updated successfully, but these errors were encountered: