- Home /
System.Threading.Mutex not supported?
Hi all,
I need to coordinate access to storage that gets updated via a network callback and thus happens asynchronously and based on the error messages I'm getting, in a multi threaded sort of fashion, i.e. the data gets put in a dictionary and then modified in other places in the program and sometimes that happens simultaneously with a network update, triggering errors like this:
InvalidOperationException: out of sync at System.Collections.Generic.Dictionary`2+Enumerator[System.String,System.Object].VerifyState
How does one coordinate access in a unity conforming sort of fashion?
Check the $$anonymous$$onoCompatibility page what classes / methods / properties are supported on which mono level. This site is huge (`> 20$$anonymous$$B` plain text) so you have to wait until it's loaded, then search the page for what ever you want to use.
Answer by bompi88 · May 13, 2012 at 11:56 AM
Tried to use C#'s lock, instead of mutex? lock statement
example:
lock(this)
{
... perform operations ...
}
Your answer

Follow this Question
Related Questions
MonoBehaviour.Invoke and Threading 2 Answers
multithreaded rendering on android breaks nativetexture update in plugin 0 Answers
EventHandler from external DLL not firing in MonoBehaviour C# script 0 Answers
> 0.9f progress of SceneManager.LoadSceneAsync isn't 0 Answers
How to stop waiting on Serial Output 2 Answers