Monitor.Enter and Monitor.TryEnter will suspend the program when the game run for a long time. ps:version Unity5.4.3f,Use IL2cpp.
I use the Monitor.TryEnter() for locking a exclusive object in another user defined thread.But it won't work correctly.After referring to the release note,I just learn about that the Monitor.TryEnter() cannot lock the object in some cases. So i try to use the Monitor.Enter() , it will be ok for a while,but an hour later,the Thread is freeze but the main loop (Unity thread) is normal.I just use the 5.3.5 and Monitor.Enter can work correctly, i don't know why and whether i use the IL2CPP.
This sounds like a bug, as both $$anonymous$$onitor.TryEnter and $$anonymous$$onitor.Enter should work correctly. Can you submit a bug report for this issue with a project that reproduces the problem?
Your answer
Follow this Question
Related Questions
iOS 64 Bit - game freezes for some seconds? 0 Answers
How many instatiates per frame is too much? 0 Answers
Get axe/arrow to stick to object 0 Answers
The editor got Massive FPS drop due to "Unaccounted time" says the profiler 0 Answers
Unity Stop/Freeze when Destroying+reloading a lot of GameObjects, solution ? 0 Answers