diff options
author | Emilio G. Cota | 2018-08-15 21:00:48 +0200 |
---|---|---|
committer | Richard Henderson | 2018-09-26 17:55:54 +0200 |
commit | 69d55e9cc28dc2f1e2f2426d2a43f2d10db76f29 (patch) | |
tree | 2e997d31cc122f7dcb59d2985ae299251a5590a5 /include/qemu/compiler.h | |
parent | qht: remove unused map param from qht_remove__locked (diff) | |
download | qemu-69d55e9cc28dc2f1e2f2426d2a43f2d10db76f29.tar.gz qemu-69d55e9cc28dc2f1e2f2426d2a43f2d10db76f29.tar.xz qemu-69d55e9cc28dc2f1e2f2426d2a43f2d10db76f29.zip |
qht: add qht_iter_remove
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 racy, since between the iteration and the removals other
threads might insert additional elements.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/qemu/compiler.h')
0 files changed, 0 insertions, 0 deletions