public void RemoveThread() { if (workers.Count > 0) { workers[0].EnqueueTask(null, null); WaitForTaskCompletion(); workers[0].Dispose(); } }
/// <summary> /// Removes a worker thread from the engine. /// </summary> public void RemoveThread() { taskManager.RemoveThread(); looper.RemoveThread(); }