CheckNewThreadWithoutStartRule

13 views
Skip to first unread message

Oleg Deribas

unread,
Sep 5, 2011, 11:14:11 AM9/5/11
to gend...@googlegroups.com
Hi,

I think I have false positive for CheckNewThreadWithoutStartRule. It reports code which goes like this:


int threadNumber = 0;
foreach(thing in theList)
{
    listOfThreads[threadNumber] = new Thread(thing.SomeMethod);
    listOfThreads[threadNumber++].Start();
}

--
Oleg

Oleg Deribas

unread,
Sep 7, 2011, 8:58:50 AM9/7/11
to gend...@googlegroups.com
Hi,

I've added failing test for this case. It's in this pull request: https://github.com/mono/mono-tools/pull/14

--
Oleg

Reply all
Reply to author
Forward
0 new messages