示例#1
0
        public void Abort()
        {
            CallQueued.Release(Int32.MaxValue);

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

            foreach (WorkerThread thread in m_WorkerThreads)
            {
                thread.Kill();
            }
            CallQueued.Close();
        }