BEPUphysics.Threading.ThreadTaskManager.RemoveThread C# (CSharp) Méthode

RemoveThread() public méthode

Removes a thread from the manager.
public RemoveThread ( ) : void
Résultat void
        public void RemoveThread()
        {
            if (workers.Count > 0)
            {
                workers[0].EnqueueTask(null, null);
                WaitForTaskCompletion();
                workers[0].Dispose();
            }
        }

Usage Example

 /// <summary>
 /// Removes a worker thread from the engine.
 /// </summary>
 public void RemoveThread()
 {
     taskManager.RemoveThread();
     looper.RemoveThread();
 }