Exemple #1
0
 public SmartThreadPool(int idleTimeout)
 {
     this._stpStartInfo = new STPStartInfo
     {
         IdleTimeout = idleTimeout
     };
     this.Initialize();
 }
Exemple #2
0
 public STPStartInfo(STPStartInfo stpStartInfo) : base(stpStartInfo)
 {
     this._idleTimeout      = stpStartInfo.IdleTimeout;
     this._minWorkerThreads = stpStartInfo.MinWorkerThreads;
     this._maxWorkerThreads = stpStartInfo.MaxWorkerThreads;
     this._threadPriority   = stpStartInfo.ThreadPriority;
     this._performanceCounterInstanceName = stpStartInfo.PerformanceCounterInstanceName;
     this._enableLocalPerformanceCounters = stpStartInfo._enableLocalPerformanceCounters;
 }
Exemple #3
0
 public SmartThreadPool(int idleTimeout, int maxWorkerThreads)
 {
     this._stpStartInfo = new STPStartInfo
     {
         IdleTimeout      = idleTimeout,
         MaxWorkerThreads = maxWorkerThreads
     };
     this.Initialize();
 }
Exemple #4
0
 public SmartThreadPool(STPStartInfo stpStartInfo)
 {
     this._stpStartInfo = new STPStartInfo(stpStartInfo);
     this.Initialize();
 }