ck_rhs_apply (3) - Linux Manuals

ck_rhs_apply: apply a function to hash set value

NAME

ck_rhs_apply - apply a function to hash set value

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_rhs.h Ft void * Fn ck_rhs_apply_fn_t void *key void *closure Ft bool Fn ck_rhs_apply ck_rhs_t *hs unsigned long hash const void *key ck_rhs_apply_fn_t *function void *argument

DESCRIPTION

The Fn ck_rhs_apply 3 function will lookup the hash set slot associated with Fa key and pass it to function pointed to by Fa function for further action. This callback may remove or replace the value by respectively returning NULL or a pointer to another object with an identical key. The first argument passed to Fa function is a pointer to the object found in the hash set and the second argument is the Fa argument pointer passed to Fn ck_rhs_apply 3 . If the pointer returned by Fa function is equivalent to the first argument then no modification is made to the hash set.

RETURN VALUES

Upon successful completion, Fn ck_rhs_apply 3 returns true and otherwise returns false on failure.

SEE ALSO

ck_rhs_init3, ck_rhs_move3, ck_rhs_destroy3, ck_rhs_fas3, CK_RHS_HASH3, ck_rhs_iterator_init3, ck_rhs_next3, ck_rhs_get3, ck_rhs_put3, ck_rhs_put_unique3, ck_rhs_remove3, ck_rhs_grow3, ck_rhs_rebuild3, ck_rhs_gc3, ck_rhs_count3, ck_rhs_reset3, ck_rhs_reset_size3, ck_rhs_stat3

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