Mercurial > pub > ImplabNet
diff Implab.Test/AsyncTests.cs @ 21:6a56df4ec59e promises
DispatchPool works again, but performance is poor in some cases
author | cin |
---|---|
date | Tue, 12 Nov 2013 19:52:10 +0400 |
parents | 1c3b3d518480 |
children | 5a35900264f5 |
line wrap: on
line diff
--- a/Implab.Test/AsyncTests.cs Tue Nov 12 02:27:22 2013 +0400 +++ b/Implab.Test/AsyncTests.cs Tue Nov 12 19:52:10 2013 +0400 @@ -151,7 +151,7 @@ var pool = new WorkerPool(5, 20); Assert.AreEqual(5, pool.PoolSize); pool.Dispose(); - Thread.Sleep(200); + Thread.Sleep(500); Assert.AreEqual(0, pool.PoolSize); pool.Dispose(); } @@ -244,7 +244,7 @@ [TestMethod] public void ChainedMapTest() { - using (var pool = new WorkerPool(0,100,0)) { + using (var pool = new WorkerPool(0,100,1)) { int count = 10000; double[] args = new double[count];