Shared resources across multiple concurrent processes is not a good way to ensure a full night's sleep. I would follow the documentation's advice and pass arguments to the child process and not try and depend on the state of global objects.
Agreed. I think the #1 rule of multi-platform support is to NOT support multiple platforms. Been there, done that, you won't like the tee-shirt.
But if you "must" do it, let the implementation/agent for each platform be as different as they need to be, with no shared mutable memory, and just pass messages.