Re: weakly referenced paged queries

From: Øyvind Harboe (oyvind.harbo..ylin.com)
Date: Sat Jun 21 2008 - 07:57:54 EDT

  • Next message: Michael Gentry: "Re: Configuring SSL"

    On Fri, Jun 20, 2008 at 11:57 PM, Scott Anderson <sanderso..irvana.com> 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
    



    This archive was generated by hypermail 2.0.0 : Sat Jun 21 2008 - 07:58:30 EDT