1

Closed

WaitHandle.WaitAll Failed

description

for (int i = 0; i < upper; i++)
        {
            int idx = i;
            var t = Task.Factory.StartNew((state) =>
            {
                for (int j = 0; j < 10; j++)
                {
                    sb.AppendLine(string.Format("task : {0}, outputing {1}", state, j));
                }
                mres[idx].Set();
            }, i);
        }

        WaitHandle.WaitAll((from m in mres select m.WaitHandle).ToArray());
Closed Mar 30, 2013 at 7:34 PM by BradWilson
This bug is unclear. In particular, we have no idea what the issue is or whether it's related to xUnit.net at all. Please re-open with a clear description of the expected and observed behaviors as well as a repro test case.

Thanks...

comments