BEPUphysics.Threading.SimpleThreadManager.WaitForTaskCompletion C# (CSharp) Метод

WaitForTaskCompletion() публичный Метод

Blocks the current thread until all tasks have been completed.
public WaitForTaskCompletion ( ) : void
Результат void
        public void WaitForTaskCompletion()
        {
            if (Interlocked.Decrement(ref tasksRemaining) == 0)
            {
                allThreadsIdleNotifier.Set();
            }
            allThreadsIdleNotifier.WaitOne();

            //When it gets here, it means things are successfully idle'd.
            tasksRemaining = 1;
            allThreadsIdleNotifier.Reset();
        }