Apache.NMS.ActiveMQ.Threads.CompositeTaskRunner.ShutdownWithAbort C# (CSharp) Метод

ShutdownWithAbort() публичный Метод

public ShutdownWithAbort ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
Результат void
        public void ShutdownWithAbort(TimeSpan timeout)
        {
            lock(mutex)
            {
                this.shutdown = true;
                this.pending = true;

                Monitor.PulseAll(this.mutex);

                // Wait till the thread stops ( no need to wait if shutdown
                // is called from thread that is shutting down)
                if(Thread.CurrentThread != this.theThread && !this.terminated)
                {
                    Monitor.Wait(this.mutex, timeout);

                    if(!this.terminated)
                    {
                        theThread.Abort();
                    }
                }
            }
        }