Re: [Mono-devel-list] Re: [Mono-patches] r46370 - in trunk/mcs/class/corlib: System.Collections.Generic Test/System.Collections.Generic

2005-06-22 Thread Ben Maurer
On Wed, 2005-06-22 at 19:27 -0600, David Waite wrote: > Enumerating needs to be locked, inserts need to be locked, but all > locking is external to the collection. But you can enumerate and read from multiple threads at the same time. -- Ben ___ Mono-d

[Mono-devel-list] Re: [Mono-patches] r46370 - in trunk/mcs/class/corlib: System.Collections.Generic Test/System.Collections.Generic

2005-06-22 Thread Ben Maurer
On Wed, 2005-06-22 at 10:42 -0400, Raja R Harinath wrote: > (GetSlot): Use _hcp to compare keys. Return the slot containing > the key, rather than the index. Avoid move-to-front heuristic > when there's an enumerator coursing through the table. There are probably races here. I