Aegis.Threading.WorkerThread.Stop C# (CSharp) Méthode

Stop() public méthode

public Stop ( ) : void
Résultat 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

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