ck_hs_stat (3) - Linux Manuals

ck_hs_stat: get hash set status

NAME

ck_hs_stat - get hash set status

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_hs.h Ft void Fn ck_hs_stat ck_hs_t *hs struct ck_hs_stat *st

DESCRIPTION

The Fn ck_hs_stat 3 function will store various hash set statistics in the object pointed to by Fa st . The ck_hs_stat structure is defined as follows:
struct ck_hs_stat {
        unsigned long tombstones;   /* Current number of tombstones in hash set. */
        unsigned long n_entries;    /* Current number of keys in hash set. */
        unsigned int probe_maximum; /* Longest read-side probe sequence. */
};

RETURN VALUES

Fn ck_hs_stat 3 has no return value.

ERRORS

Behavior is undefined if Fa hs is uninitialized. Behavior is undefined if this function is called by a non-writer thread.

SEE ALSO

ck_hs_init3, ck_hs_move3, ck_hs_destroy3, CK_HS_HASH3, ck_hs_iterator_init3, ck_hs_next3, ck_hs_get3, ck_hs_put3, ck_hs_put_unique3, ck_hs_set3, ck_hs_fas3, ck_hs_remove3, ck_hs_grow3, ck_hs_gc3, ck_hs_rebuild3, ck_hs_count3, ck_hs_reset3, ck_hs_reset_size3

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