Aegis.Threading.WorkerThread.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
        public void Stop()
        {
            lock (this)
            {
                if (_running == false || _threads == null)
                    return;

                _running = false;
                _works.Cancel();

                foreach (Thread th in _threads)
                    th.Join();

                _works.Clear();
                _threads = null;
            }
        }

Usage Example

Exemplo n.º 1
0
 public static void Release()
 {
     _dispatchThread.Stop();
     _workerThread.Stop();
 }
All Usage Examples Of Aegis.Threading.WorkerThread::Stop