* Disable item counting and automatic rehashing when adding/removing items. * * Normally, the hashmap keeps track of the number of items in the map * and uses it to dynamically resize it. This (both the counting and * the resizing) can cause problems when the map is being used by * threaded callers (because the hashmap code does not know about the * locking strategy used by the threaded cal
| 528 | * not know how to protect the "private_size" counter). |
| 529 | */ |
| 530 | static inline void hashmap_disable_item_counting(struct hashmap *map) |
| 531 | { |
| 532 | map->do_count_items = 0; |
| 533 | } |
| 534 | |
| 535 | /* |
| 536 | * Re-enable item counting when adding/removing items. |
no outgoing calls
no test coverage detected