Mercurial > hg > ucis.core
changeset 102:1474f92cf7e7
Regression fix in ThreadPool class
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 01 Oct 2014 23:16:06 +0200 |
parents | 04c56f31db37 |
children | 8fe322656807 |
files | ThreadPool.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ThreadPool.cs Mon Sep 29 01:36:27 2014 +0200 +++ b/ThreadPool.cs Wed Oct 01 23:16:06 2014 +0200 @@ -112,7 +112,7 @@ if (pThreadsMinIdle > value) throw new ArgumentOutOfRangeException("ThreadsMaxIdle", "ThreadsMaxIdle must be greater than or equal to ThreadsMinIdle"); if (value < 0) throw new ArgumentOutOfRangeException("ThreadsMaxIdle", "ThreadsMaxIdle must greater than or equal to 0"); lock (pIdleThreads) { - while (value > pIdleThreads.Count) { + while (value < pIdleThreads.Count) { ThreadInfo T = pIdleThreads.Dequeue(); T.Abort = true; T.WaitHandle.Set();