ck_rhs_reset_size (3) - Linux Manuals

ck_rhs_reset_size: remove all keys from a hash set

NAME

ck_rhs_reset_size - remove all keys from a hash set

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_rhs.h Ft bool Fn ck_rhs_reset_size ck_rhs_t *hs unsigned long size

DESCRIPTION

The Fn ck_rhs_reset_size 3 function will remove all keys stored in the hash set pointed to by the Fa hs argument and create a new generation of the hash set that is preallocated for Fa size entries.

RETURN VALUES

If successful, Fn ck_rhs_reset_size 3 will return true and will otherwise return false on failure. This function will only fail if a replacement hash set could not be allocated internally.

ERRORS

Behavior is undefined if Fa hs is uninitialized. Behavior is undefined if this function is called by a non-writer thread.

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_remove3, ck_rhs_grow3, ck_rhs_gc3, ck_rhs_rebuild3, ck_rhs_count3, ck_rhs_reset3, ck_rhs_stat3

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