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.
↧