diff options
author | Emilio G. Cota <cota@braap.org> | 2018-09-10 13:06:12 -0400 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2018-09-26 08:55:54 -0700 |
commit | 78255ba2cc00f41d96aa2911933764f59f24c958 (patch) | |
tree | 06b33056d900b7cdc79ac7d8540461c6768a4c15 /include/qemu/qht.h | |
parent | ca8897a44cda60693e66085f1e916e76b94400df (diff) | |
download | qemu-78255ba2cc00f41d96aa2911933764f59f24c958.zip qemu-78255ba2cc00f41d96aa2911933764f59f24c958.tar.gz qemu-78255ba2cc00f41d96aa2911933764f59f24c958.tar.bz2 |
qht: drop ht argument from qht iterators
Accessing the HT from an iterator results almost always
in a deadlock. Given that only one qht-internal function
uses this argument, drop it from the interface.
Suggested-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/qht.h')
-rw-r--r-- | include/qemu/qht.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/qemu/qht.h b/include/qemu/qht.h index 3a9618d..6484837 100644 --- a/include/qemu/qht.h +++ b/include/qemu/qht.h @@ -43,9 +43,8 @@ struct qht_stats { }; typedef bool (*qht_lookup_func_t)(const void *obj, const void *userp); -typedef void (*qht_iter_func_t)(struct qht *ht, void *p, uint32_t h, void *up); -typedef bool (*qht_iter_bool_func_t)(struct qht *ht, void *p, uint32_t h, - void *up); +typedef void (*qht_iter_func_t)(void *p, uint32_t h, void *up); +typedef bool (*qht_iter_bool_func_t)(void *p, uint32_t h, void *up); #define QHT_MODE_AUTO_RESIZE 0x1 /* auto-resize when heavily loaded */ #define QHT_MODE_RAW_MUTEXES 0x2 /* bypass the profiler (QSP) */ |