ck_ht_remove_spmc(3) resize a hash table if necessary

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_ht.h Ft bool Fn ck_ht_remove_spmc ck_ht_t *ht ck_ht_hash_t h ck_ht_entry_t *entry

DESCRIPTION

The Fn ck_ht_remove_spmc function will remove the key-value pair associated with the key specified by the Fa entry argument.

If Fa ht was created with CK_HT_MODE_BYTESTRING then Fa entry must have been initialized with the ck_ht_entry_set_key3 or ck_ht_entry_set3 functions. If Fa ht was created with CK_HT_MODE_DIRECT then Fa entry must have been initialized with the ck_ht_entry_key_set_direct3 or ck_ht_entry_set_direct3 functions.

It is expected that Fa h was initialized with ck_ht_hash3 if Fa ht was created with CK_HT_MODE_BYTESTRING. If Fa ht was initialized with CK_HT_MODE_DIRECT then it is expected that Fa h was initialized with the ck_ht_hash_direct3 function.

RETURN VALUES

If successful, Fa entry will contain the key-value pair that was found in the hash table and Fn ck_ht_remove_spmc will return true. If the entry could not be found then Fn ck_ht_remove_spmc will return false.