Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Duncan Godwin
Or you could use that, which I didn't even realise was there...sorry. Duncan - Original Message - From: "Jim Arnold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 2:11 PM Subject: Re: [DOTNET] Threading and Enumeration > &g

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Jim Arnold
> Why would you actually want to make the copy by some means other than > enumeration? Because ICollection.CopyTo() (where available) is usually 10x faster? He says, jumping in without reading the whole thread. Jim > > -- > Ian Griffiths > DevelopMentor > > - Original Message - > From:

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Ian Griffiths
I thought the point was that you *do* make the copy by enumerating. The idea is that you acquire the lock, build a copy as quickly as you can using the enumerator, release the lock, and then work through the copy at your leisure. I thought that was what the original post was suggesting. (Althoug

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Duncan Godwin
D]> Sent: Tuesday, April 16, 2002 12:32 PM Subject: Re: [DOTNET] Threading and Enumeration > The fun bit is making the copy *without enumerating* ;) > > G. > -- > Graeme Foster ([EMAIL PROTECTED]) > Principal Software Engineer > Aston Broadcast Systems Ltd. (http://www.as

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Graeme Foster
The fun bit is making the copy *without enumerating* ;) G. -- Graeme Foster ([EMAIL PROTECTED]) Principal Software Engineer Aston Broadcast Systems Ltd. (http://www.aston.tv) Disclaimer: I really don't have a clue what I'm on about. -Original Message- From: dotnet discussion [mailto:[EMA

Re: [DOTNET] Threading and Enumeration

2002-04-15 Thread Duncan Godwin
IL PROTECTED]> Sent: Monday, April 15, 2002 5:06 PM Subject: Re: [DOTNET] Threading and Enumeration > Thanks... (Somehow I always seem to miss the documents I need to see > when I'm searching...) > > > -Original Message- > > From: dotnet discussion > > [m

Re: [DOTNET] Threading and Enumeration

2002-04-15 Thread Tracy Martin
ussion [mailto:[EMAIL PROTECTED]] > On Behalf Of > Tracy Martin > Sent: Monday, April 15, 2002 11:33 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] Threading and Enumeration > > Greetings, > > Does anyone have any information about how enumerators > handle changes >

Re: [DOTNET] Threading and Enumeration

2002-04-15 Thread Ethan Smith
esulting from changes made by other threads." -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Tracy Martin Sent: Monday, April 15, 2002 11:33 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Threading and Enumeration Greetings, Does anyone have an

[DOTNET] Threading and Enumeration

2002-04-15 Thread Tracy Martin
Greetings, Does anyone have any information about how enumerators handle changes in the object during enumeration? Or, more specifically, I have a scenario where I have a collection of objects that potentially being added to by separate threads while being enumerated on another thread. Only one t