public void Abort() { CallQueued.Release(Int32.MaxValue); foreach (WorkerThread thread in m_WorkerThreads) { thread.m_ThreadObj.Abort(); } CallQueued.Close(); }
public void Close() { if (CallQueued.SafeWaitHandle.IsClosed) { return; } CallQueued.Release(Int32.MaxValue); foreach (WorkerThread thread in m_WorkerThreads) { thread.Kill(); } CallQueued.Close(); }