ck_ht_next (3) - Linux Manuals

ck_ht_next: iterate to next entry in hash table

NAME

ck_ht_next - iterate to next entry in hash table

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_ht.h Ft bool Fn ck_ht_next ck_ht_t *ht ck_ht_iterator_t *iterator ck_ht_entry_t **entry

DESCRIPTION

The Fn ck_ht_next function will increment the iterator object pointed to by Fa iterator to point to the next non-empty hash table entry. If Fn ck_ht_next returns true then the pointer pointed to by Fa entry is initialized to the current hash table entry pointed to by the Fa iterator object.

It is expected that Fa iterator has been initialized using the ck_ht_iterator_init3 function or statically initialized using CK_HT_ITERATOR_INITIALIZER.

RETURN VALUES

If Fn ck_ht_next returns true then the object pointed to by Fa entry points to a valid hash table entry. If Fn ck_ht_next returns false then value of the object pointed to by Fa entry is undefined.

ERRORS

Behavior is undefined if Fa iterator or Fa ht are uninitialized.

SEE ALSO

ck_ht_stat3, ck_ht_init3, ck_ht_destroy3, ck_ht_hash3, ck_ht_hash_direct3, ck_ht_set_spmc3, ck_ht_put_spmc3, ck_ht_gc3, ck_ht_get_spmc3, ck_ht_grow_spmc3, ck_ht_remove_spmc3, ck_ht_count3, ck_ht_reset_spmc3, ck_ht_reset_size_spmc3, ck_ht_entry_empty3, ck_ht_entry_key_set3, ck_ht_entry_key_set_direct3, ck_ht_entry_key_length3, ck_ht_entry_key3, ck_ht_entry_set3, ck_ht_entry_set_direct3, ck_ht_entry_key_direct3, ck_ht_entry_value3, ck_ht_entry_value_direct3, ck_ht_iterator_init3

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