public void Test() { using (var loop = new MessageLoop<MsgLoopTests>(this)) Parallel.For(0, Iters, i => loop.Do(x => ++x._i)); Assert.AreEqual(Iters, _i); }
public void Test() { using (var loop = new MessageLoop <MsgLoopTests>(this)) Parallel.For(0, Iters, i => loop.Do(x => ++ x._i)); Assert.AreEqual(Iters, _i); }