On Fri, Jun 20, 2008 at 11:57 PM, Scott Anderson <[EMAIL PROTECTED]> wrote:
> Why do you expect there to be a comment justifying it? It's necessary to lock 
> all
>  collections while iterating over or modifying them if they can be vulnerable 
> to concurrent
> modification.

>From the clients point of view there is only a single thread.

What other threads are there?

Also, the type of locking used must be documented. According to the
collections framework, it won't "just work" without explicitly synchronizing.




-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer

Reply via email to