summaryrefslogtreecommitdiffstats
path: root/include/qemu/host-utils.h
diff options
context:
space:
mode:
authorEmilio G. Cota2018-08-15 21:00:48 +0200
committerRichard Henderson2018-09-26 17:55:54 +0200
commit69d55e9cc28dc2f1e2f2426d2a43f2d10db76f29 (patch)
tree2e997d31cc122f7dcb59d2985ae299251a5590a5 /include/qemu/host-utils.h
parentqht: remove unused map param from qht_remove__locked (diff)
downloadqemu-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/host-utils.h')
0 files changed, 0 insertions, 0 deletions