diff options
author | Justus Winter <justus@gnupg.org> | 2016-04-28 20:11:27 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-04-29 22:39:06 +0200 |
commit | 39031d37fd82c119b4b16af256a8ceae5d8c6ea8 (patch) | |
tree | fc63fd59c5346bfb415a2eee45eddb1953e6e7bc /utils | |
parent | 74d373342f799a45e9193c2f56189843b7b42c04 (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')
0 files changed, 0 insertions, 0 deletions