GSF.Diagnostics.ThreadPoolMonitor.ThreadPoolMonitor C# (CSharp) Method

ThreadPoolMonitor() static private method

static private ThreadPoolMonitor ( ) : System.Collections.Generic
return System.Collections.Generic
        static ThreadPoolMonitor()
        {
            if (OptimizationOptions.EnableThreadPoolMonitoring)
            {
                s_monitors = new List<Monitor>();
                s_monitors.Add(new Monitor(0));
                s_monitors.Add(new Monitor(10));
                s_monitors.Add(new Monitor(100));
                s_monitors.Add(new Monitor(1000));

                s_lastResetTime = ShortTime.Now;

                Log.Publish(MessageLevel.Info, "Starting ThreadPool Monitoring.");

                LoadingAdjustedTimestamp.OnHighLoad += LoadingAdjustedTimestamp_OnHighLoad;
            }
        }