ck_hs_grow (3) - Linux Manuals
ck_hs_grow: enlarge hash set capacity
NAME
ck_hs_grow - enlarge hash set capacityLIBRARY
Concurrency Kit (libck, -lck)SYNOPSIS
In ck_hs.h Ft bool Fn ck_hs_grow ck_hs_t *hs unsigned long capacityDESCRIPTION
The Fn ck_hs_grow 3 function will resize the hash set in order to be able to store at least the number of entries specified by Fa capacity at a load factor of one. The default hash set load factor is 0.5. If you wish to minimize the likelihood of memory allocations for a hash set meant to store n entries, then specify a Fa capacity of 2n. The default behavior of ck_hs is to round Fa capacity to the next power of two if it is not already a power of two.RETURN VALUES
Upon successful completion, Fn ck_hs_grow 3 returns true and otherwise returns false on failure.ERRORS
Behavior is undefined if Fa hs is uninitialized. This function will only return false if there are internal memory allocation failures.SEE ALSO
ck_hs_init3, ck_hs_move3, ck_hs_destroy3, CK_HS_HASH3, ck_hs_iterator_init3, ck_hs_next3, ck_hs_get3, ck_hs_put3, ck_hs_put_unique3, ck_hs_set3, ck_hs_fas3, ck_hs_remove3, ck_hs_rebuild3, ck_hs_gc3, ck_hs_count3, ck_hs_reset3, ck_hs_reset_size3, ck_hs_stat3Additional information available at http://concurrencykit.org/