cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Øyvind Harboe" <>
Subject Re: weakly referenced paged queries
Date Sat, 21 Jun 2008 11:57:54 GMT
On Fri, Jun 20, 2008 at 11:57 PM, Scott Anderson <> 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
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer

View raw message