ck_rhs_put_unique (3) - Linux Manuals
ck_rhs_put_unique: unconditionally store unique key into a hash set
NAME
ck_rhs_put_unique - unconditionally store unique key into a hash setLIBRARY
Concurrency Kit (libck, -lck)SYNOPSIS
In ck_rhs.h Ft bool Fn ck_rhs_put_unique ck_rhs_t *hs unsigned long hash const void *keyDESCRIPTION
The Fn ck_rhs_put_unique 3 function will store the key specified by the Fa key argument in the hash set pointed to by the Fa hs argument. The key specified by Fa key is expected to have the hash value specified by the Fa hash argument (which was previously generated using the CK_RHS_HASH3 macro).If the call to Fn ck_rhs_put 3 was successful then the key specified by Fa key was successfully stored in the hash set pointed to by Fa hs . The function will cause undefined behavior if a key with an equivalent value is already present in the hash set. For replacement semantics, please see the ck_rhs_set3 function.
RETURN VALUES
Upon successful completion, Fn ck_rhs_put_unique 3 returns true and otherwise returns false on failure.ERRORS
Behavior is undefined if Fa key or Fa hs are uninitialized. The function will also return false if the hash set could not be enlarged to accomodate key insertion. The function will result in undefined behavior if called for an already inserted key value.SEE ALSO
ck_rhs_init3, ck_rhs_move3, ck_rhs_destroy3, CK_RHS_HASH3, ck_rhs_iterator_init3, ck_rhs_next3, ck_rhs_get3, ck_rhs_put3, ck_rhs_set3, ck_rhs_fas3, ck_rhs_remove3, ck_rhs_grow3, ck_rhs_rebuild3, ck_rhs_gc3, ck_rhs_count3, ck_rhs_reset3, ck_rhs_reset_size3, ck_rhs_stat3Additional information available at http://concurrencykit.org/