summaryrefslogtreecommitdiff
path: root/utils/shd.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-28 20:11:27 +0200
committerJustus Winter <justus@gnupg.org>2016-04-29 22:39:06 +0200
commit39031d37fd82c119b4b16af256a8ceae5d8c6ea8 (patch)
treefc63fd59c5346bfb415a2eee45eddb1953e6e7bc /utils/shd.c
parent74d373342f799a45e9193c2f56189843b7b42c04 (diff)
libihash: keep track of free slots
* libihash/ihash.c (hurd_ihash_init): Init new field 'nr_free'. (add_one): Decrement counter if a free slot is used. (hurd_ihash_locp_add): Likewise. (hurd_ihash_add): Reset counter on reallocation. * libihash/ihash.h (struct hurd_ihash): New field 'nr_free'. (hurd_ihash_get_effective_load): New function.
Diffstat (limited to 'utils/shd.c')
0 files changed, 0 insertions, 0 deletions