mesa/src/util/tests/hash_table
Mike Blumenkrantz 31e546a762 util/hash_table: add macro for destructively iterating entries
a common usage for hash tables is for tracking exactly one instance of a pointer
for a given period of time, after which the table's entries are purged and it
is reused

this macro enables the purge phase of such usage to reset the table to a
pristine state, avoiding future rehashing due to ballooning of deleted entries

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8498>
2021-04-07 22:57:27 +00:00
..
clear.c util/hash_table: add macro for destructively iterating entries 2021-04-07 22:57:27 +00:00
collision.c util: Fix memory leak in a hash table unit test. 2020-12-15 19:39:29 +00:00
delete_and_lookup.c
delete_management.c
destroy_callback.c util/hash_table: added hash functions for integer types 2020-01-23 17:06:57 +00:00
insert_and_lookup.c util/hash_table: added hash functions for integer types 2020-01-23 17:06:57 +00:00
insert_many.c
meson.build
null_destroy.c
random_entry.c util/tests: initialize variable 2020-04-16 14:48:40 +00:00
remove_key.c util/hash_table: added hash functions for integer types 2020-01-23 17:06:57 +00:00
remove_null.c
replacement.c util/hash_table: added hash functions for integer types 2020-01-23 17:06:57 +00:00