OpenSim/Framework/Util.cs
/// <summary>
/// Get information about the current state of the smart thread pool.
/// </summary>
/// <returns>
/// null if this isn't the pool being used for non-scriptengine threads.
/// </returns>
Get information about the current state of the smart thread pool.
Get information about the current state of the smart thread pool .
public static STPInfo GetSmartThreadPoolInfo()
        {
            if (m_ThreadPool == null)
                return null;
            STPInfo stpi = new STPInfo();
            stpi.Name = m_ThreadPool.Name;
            stpi.STPStartInfo = m_ThreadPool.STPStartInfo;
            stpi.IsIdle = m_ThreadPool.IsIdle;
            stpi.IsShuttingDown = m_ThreadPool.IsShuttingdown;
            stpi.MaxThreads = m_ThreadPool.MaxThreads;
            stpi.MinThreads = m_ThreadPool.MinThreads;
            stpi.InUseThreads = m_ThreadPool.InUseThreads;
            stpi.ActiveThreads = m_ThreadPool.ActiveThreads;
            stpi.WaitingCallbacks = m_ThreadPool.WaitingCallbacks;
            stpi.MaxConcurrentWorkItems = m_ThreadPool.Concurrency;
            return stpi;
        }
public static STPInfo GetSmartThreadPoolInfo ( ) { if ( m_ThreadPool == null ) return null ; STPInfo stpi = new STPInfo ( ) ; stpi . Name = m_ThreadPool . Name ; stpi . STPStartInfo = m_ThreadPool . STPStartInfo ; stpi . IsIdle = m_ThreadPool . IsIdle ; stpi . IsShuttingDown = m_ThreadPool . IsShuttingdown ; stpi . MaxThreads = m_ThreadPool . MaxThreads ; stpi . MinThreads = m_ThreadPool . MinThreads ; stpi . InUseThreads = m_ThreadPool . InUseThreads ; stpi . ActiveThreads = m_ThreadPool . ActiveThreads ; stpi . WaitingCallbacks = m_ThreadPool . WaitingCallbacks ; stpi . MaxConcurrentWorkItems = m_ThreadPool . Concurrency ; return stpi ; }
Get information about the current state of the smart thread pool.
Get information about the current state of the smart thread pool .
null if this isn't the pool being used for non-scriptengine threads.
null if this isn ' t the pool being used for non - scriptengine threads .