ck_ht_reset_size_spmc3
Remove all entries from a hash table and reset size
Usage
#include <ck_ht.h>
bool
ck_ht_reset_size_spmc(ck_ht_t *ht, uint64_t capacity);
Library
Concurrency Kit (libck, -lck)
Overview
The ck_ht_reset_size_spmc() function will remove all key-value pairs stored in the hash table pointed to by the ht argument and create a new generation of the hash table that is preallocated for capacity entries.
Return values
If successful, 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.
Releases
Unchanged in 5 releases since Debian 8 (Jessie).