Cliff Woolley wrote: >On Sat, 31 Aug 2002, Brian Pane wrote: > > > >>I don't think we can count on the assumption that each conn will >>only be processed by one thread at a time. For example, this race >> >> > >Then we have to at least guarantee that each request can only be processed >by one thread at a time, I think. *None* of the buckets code is >threadsafe, and it's done that way intentionally. A brigade (and its >allocator) can exist in exactly one thread at a time. > >
Wouldn't it be sufficient to guarantee that: * each *bucket* can only be processed by one thread at a time, and * allocating/freeing buckets is thread-safe? Brian