ck_hs_reset (3) - Linux Manuals

ck_hs_reset: remove all keys from a hash set

NAME

ck_hs_reset - remove all keys from a hash set

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_hs.h Ft bool Fn ck_hs_reset ck_hs_t *hs

DESCRIPTION

The Fn ck_hs_reset 3 function will remove all keys stored in the hash set pointed to by the Fa hs argument.

RETURN VALUES

If successful, Fn ck_hs_reset 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_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_reset_size3, ck_hs_grow3, ck_hs_gc3, ck_hs_rebuild3, ck_hs_count3, ck_hs_stat3

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