opensim/OpenSim/Framework/Util.cs
/// <summary>
/// Finds threads in the main thread pool that have timed-out, and aborts them.
/// </summary>
Finds threads in the main thread pool that have timed-out, and aborts them.
Finds threads in the main thread pool that have timed - out and aborts them .
private static void ThreadPoolWatchdog(object state)
        {
            foreach (KeyValuePair<long, ThreadInfo> entry in activeThreads)
            {
                ThreadInfo t = entry.Value;
                if (t.Running && !t.Aborted && (t.Elapsed() >= THREAD_TIMEOUT))
                {
                    m_log.WarnFormat("Timeout in threadfunc {0} ({1}) {2}", t.ThreadFuncNum, t.Thread.Name, t.GetStackTrace());
                    t.Abort();
                    ThreadInfo dummy;
                    activeThreads.TryRemove(entry.Key, out dummy);
                    m_ThreadPool.MaxThreads++;
                }
            }
        }
private static void ThreadPoolWatchdog ( object state ) { foreach ( KeyValuePair < long , ThreadInfo > entry in activeThreads ) { ThreadInfo t = entry . Value ; if ( t . Running && ! t . Aborted && ( t . Elapsed ( ) >= THREAD_TIMEOUT ) ) { m_log . WarnFormat ( " " , t . ThreadFuncNum , t . Thread . Name , t . GetStackTrace ( ) ) ; t . Abort ( ) ; ThreadInfo dummy ; activeThreads . TryRemove ( entry . Key , out dummy ) ; m_ThreadPool . MaxThreads ++ ; } } }
Finds threads in the main thread pool that have timed-out, and aborts them.
Finds threads in the main thread pool that have timed - out and aborts them .
// It's possible that the thread won't abort. To make sure the thread pool isn't // depleted, increase the pool size.
state
object