From: Jeff Hostetler Date: Wed, 22 Mar 2017 17:14:22 +0000 (+0000) Subject: hashmap: add disallow_rehash setting X-Git-Tag: v2.13.0-rc0~53^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0607e10009ee4e37cb49b4cec8d28a9dda1656a4?ds=inline;hp=0607e10009ee4e37cb49b4cec8d28a9dda1656a4 hashmap: add disallow_rehash setting Teach hashmap to allow rehashes to be suppressed. This is useful when hashmaps are accessed by multiple threads. It still requires the caller to properly manage their locking. This just prevents unexpected rehashing during inserts and deletes. Signed-off-by: Jeff Hostetler Signed-off-by: Junio C Hamano ---