cp_hashlist_set_min_fill_factor(3)
| cp_hashlist(3) | libcprops - cp_hashlist | cp_hashlist(3) |
NAME
cp_hashlist_set_min_fill_factor, cp_hashlist_set_max_fill_factor - set minimal/maximal fill factors for internal table resizing
SYNOPSIS
#include <cprops/hashlist.h>
int cp_hashlist_set_min_fill_factor(cp_hashlist
*list, int factor);
int cp_hashlist_set_max_fill_factor(cp_hashlist *list, int
factor);
DESCRIPTION
factor is the fill factor in percent beyond which an internal table resize will be triggered upon entry removal (cp_hashlist_set_min_fill_factor) or insertion (cp_hashlist_set_max_fill_factor). The default values are 5 and 70 respectively.
Resizing may be disabled completely by setting the COLLECTION_MODE_NORESIZE bit on the list's mode.
RETURN VALUE
cp_hashlist_set_min_fill_factor and cp_hashlist_set_max_fill_factor return 0 on success or -1 on locking failure.
SEE ALSO
| OCTOBER 2005 | libcprops.0.0.3 |
