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
IEnumerator Executer()
{
while (true)
{
yield return null;
while (calls.Count > 0)
{
calls[0].Execute(); // ← thread unsafe! GC may occur if it is added by another thread.
lock (callsLock)
{
calls.RemoveAt(0);
}
}
while (functions.Count > 0)
{
if(functions[0] != null){
functions[0](); // ← thread unsafe! GC may occur if it is added by another thread.
}
lock (functionsLock)
{
functions.RemoveAt(0);
}
}
}
}
Someone reported issues with mainthread.cs
and suggested small fix (below this code)
Assets\PointCloudTools\PointCloudViewerDX11\Scripts\Common\MainThread.cs:
modified:
The text was updated successfully, but these errors were encountered: