Re: [Qemu-devel] [PATCH 2/6] qht: add qht_iter_remove

2018-09-07 Thread Emilio G. Cota
On Fri, Sep 07, 2018 at 15:51:12 +0100, Alex Bennée wrote: > > Emilio G. Cota writes: > > > This currently has no users, but the use case is so common that I > > think we must support it. > > > > Note that without the appended we cannot safely remove a set of > > elements; a 2-step approach

Re: [Qemu-devel] [PATCH 2/6] qht: add qht_iter_remove

2018-09-07 Thread Alex Bennée
Emilio G. Cota writes: > This currently has no users, but the use case is so common that I > think we must support it. > > Note that without the appended we cannot safely remove a set of > elements; a 2-step approach (i.e. qht_iter first, keep track of > the to-be-deleted elements, and then a

[Qemu-devel] [PATCH 2/6] qht: add qht_iter_remove

2018-08-17 Thread Emilio G. Cota
This currently has no users, but the use case is so common that I think we must support it. Note that without the appended we cannot safely remove a set of elements; a 2-step approach (i.e. qht_iter first, keep track of the to-be-deleted elements, and then a bunch of qht_remove calls) would be