comparison Implab.Test/AsyncTests.cs @ 34:dabf79fde388

fixed race condition in DispatchPool
author cin
date Thu, 10 Apr 2014 04:20:25 +0400
parents b255e4aeef17
children 3b8393be3441
comparison
equal deleted inserted replaced
33:b255e4aeef17 34:dabf79fde388
242 } 242 }
243 243
244 [TestMethod] 244 [TestMethod]
245 public void ChainedMapTest() { 245 public void ChainedMapTest() {
246 246
247 using (var pool = new WorkerPool(0,100,0)) { 247 using (var pool = new WorkerPool(0,100,100)) {
248 int count = 10000; 248 int count = 10000;
249 249
250 double[] args = new double[count]; 250 double[] args = new double[count];
251 var rand = new Random(); 251 var rand = new Random();
252 252