/// <summary> /// Releases resources used by the ThreadPoolEx object. /// </summary> public void Dispose() { if (!_isDisposed) { if (!_shutdown) { Shutdown(); } if (null != _shuttingDownEvent) { _shuttingDownEvent.Close(); _shuttingDownEvent = null; } _workerThreads.Clear(); _isDisposed = true; GC.SuppressFinalize(this); } }
/// <inheritdoc/> public override void Clear() { _queues.Clear(); }