Exemplo n.º 1
0
 public SmartThreadPool(int idleTimeout)
 {
     this._stpStartInfo = new STPStartInfo
     {
         IdleTimeout = idleTimeout
     };
     this.Initialize();
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public SmartThreadPool(int idleTimeout, int maxWorkerThreads)
 {
     this._stpStartInfo = new STPStartInfo
     {
         IdleTimeout      = idleTimeout,
         MaxWorkerThreads = maxWorkerThreads
     };
     this.Initialize();
 }
Exemplo n.º 4
0
 public SmartThreadPool(STPStartInfo stpStartInfo)
 {
     this._stpStartInfo = new STPStartInfo(stpStartInfo);
     this.Initialize();
 }