ck_rhs_rebuild (3) - Linux Manuals

ck_rhs_rebuild: rebuild a hash set

NAME

ck_rhs_rebuild - rebuild a hash set

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_rhs.h Ft bool Fn ck_rhs_rebuild ck_rhs_t *hs

DESCRIPTION

The Fn ck_rhs_rebuild 3 function will regenerate the hash set pointed to by Fa hs . This has the side-effect of pruning degradatory side-effects of workloads that are delete heavy. The regenerated hash set should have shorter probe sequences on average. This operation will require a significant amount of memory and is free to allocate a duplicate hash set in the rebuild process.

RETURN VALUES

Upon successful completion, Fn ck_rhs_rebuild 3 returns true and otherwise returns false on failure.

ERRORS

This function will only return false if there are internal memory allocation failures.

SEE ALSO

ck_rhs_init3, ck_rhs_move3, ck_rhs_destroy3, CK_RHS_HASH3, ck_rhs_iterator_init3, ck_rhs_next3, ck_rhs_get3, ck_rhs_put3, ck_rhs_put_unique3, ck_rhs_set3, ck_rhs_fas3, ck_rhs_gc3, ck_rhs_grow3, ck_rhs_remove3, ck_rhs_count3, ck_rhs_reset3, ck_rhs_reset_size3, ck_rhs_stat3

Additional information available at http://concurrencykit.org/