1CK_HT_RESET_SPMC(3)      BSD Library Functions Manual      CK_HT_RESET_SPMC(3)
2

NAME

4     ck_ht_reset_size_spmc — remove all entries from a hash table and reset
5     size
6

LIBRARY

8     Concurrency Kit (libck, -lck)
9

SYNOPSIS

11     #include <ck_ht.h>
12
13     bool
14     ck_ht_reset_size_spmc(ck_ht_t *ht, uint64_t capacity);
15

DESCRIPTION

17     The ck_ht_reset_size_spmc() function will remove all key-value pairs
18     stored in the hash table pointed to by the ht argument and create a new
19     generation of the hash table that is preallocated for capacity entries.
20

RETURN VALUES

22     If successful, ck_ht_reset_size_spmc() will return true and will other‐
23     wise return false. This function will only fail if a replacement hash ta‐
24     ble could not be allocated internally.
25

SEE ALSO

27     ck_ht_stat(3), ck_ht_init(3), ck_ht_destroy(3), ck_ht_hash(3),
28     ck_ht_hash_direct(3), ck_ht_set_spmc(3), ck_ht_put_spmc(3), ck_ht_gc(3),
29     ck_ht_get_spmc(3), ck_ht_grow_spmc(3), ck_ht_remove_spmc(3),
30     ck_ht_count(3), ck_ht_entry_empty(3), ck_ht_entry_key_set(3),
31     ck_ht_entry_key_set_direct(3), ck_ht_entry_key(3),
32     ck_ht_entry_key_length(3), ck_ht_entry_value(3), ck_ht_entry_set(3),
33     ck_ht_entry_set_direct(3), ck_ht_reset_spmc(3),
34     ck_ht_entry_key_direct(3), ck_ht_entry_value_direct(3),
35     ck_ht_iterator_init(3), ck_ht_next(3)
36
37     Additional information available at http://concurrencykit.org/
38
39                                  May 5, 2013
Impressum