I am implementing a multi-process library that provides a data structure for shared memory.
But I am having trouble now, I modified the shared Hash object in the child process, but the parent process still has not read the changed value.
FYI, 0.28 brings experimental support for multi-threading (#7546) and there are some shards like immutable fitting your use-case, but with multiple threads instead of forking. I’d wait a bit rather than fighting with such a low-level code
Anyone got an idea to prettify (shared_data.to_unsafe + 1).value.prop = foo? Guess one could have a SharedSlice wrapper struct with some convenience methods…