Universe.Framework.Utilities.UniverseThreadPool.AbortThread C# (CSharp) Method

AbortThread() public method

public AbortThread ( Thread thread ) : void
thread Thread
return void
        public void AbortThread (Thread thread)
        {
            int i;
            lock (Threads) {
                for (i = 0; i < Threads.Length; i++) {
                    if (Threads [i] == thread)
                        break;
                }

                if (i == Threads.Length)
                    return;

                Threads [i] = null;
                nthreads--;
            }
            try {
                if (thread != null)
                    thread.Abort ("Shutdown");
            } catch {
            }
        }