You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No. Not directly, since a mutex object is state that is stored in memory.
From the concurrency guide, "Each isolate has its own memory heap, ensuring that none of the state in an isolate is accessible from any other isolate. Because there’s no shared memory, you don’t have to worry about mutexes or locks."
A possible solution is to have only one mutex instantiated in an isolate (possibly the main isolate), and the other isolates interacts with that isolate via messages. That is, "sharing the mutex" by actually "sharing the isolate it is in".
Is it possible to share a
Mutex
through different isolates?The text was updated successfully, but these errors were encountered: