diff Implab.Test/AsyncTests.cs @ 24:ee04e1fa78da

fixed dispatch pool race condition
author cin
date Thu, 14 Nov 2013 01:15:07 +0400
parents 5a35900264f5
children 2fad2d1f4b03
line wrap: on
line diff
--- a/Implab.Test/AsyncTests.cs	Wed Nov 13 14:03:20 2013 +0400
+++ b/Implab.Test/AsyncTests.cs	Thu Nov 14 01:15:07 2013 +0400
@@ -244,7 +244,7 @@
         [TestMethod]
         public void ChainedMapTest() {
 
-            using (var pool = new WorkerPool(4,4,0)) {
+            using (var pool = new WorkerPool(0,100,0)) {
                 int count = 10000;
 
                 double[] args = new double[count];
@@ -255,7 +255,7 @@
 
                 var t = Environment.TickCount;
                 var res = args
-                    .ChainedMap(
+                    .ChainedMap2(
                         x => pool.Invoke(
                             () => Math.Sin(x * x)
                         ),