ck_ht_reset_size_spmc(3)
remove all entries from a hash table and reset size
LIBRARY
Concurrency Kit (libck, -lck)
SYNOPSIS
In ck_ht.h
Ft bool
Fn ck_ht_reset_size_spmc ck_ht_t *ht uint64_t capacity
DESCRIPTION
The
Fn ck_ht_reset_size_spmc
function will remove all key-value pairs stored in the hash
table pointed to by the
Fa ht
argument and create a new generation of the hash table that
is preallocated for
Fa capacity
entries.
RETURN VALUES
If successful,
Fn ck_ht_reset_size_spmc
will return
true
and will otherwise return
false.
This function will only fail if a replacement hash table
could not be allocated internally.