ck_hs_stat3
Get hash set status
Usage
#include <ck_hs.h>
void
ck_hs_stat(ck_hs_t *hs, struct ck_hs_stat *st);
Library
Concurrency Kit (libck, -lck)
Overview
The ck_hs_stat(3) function will store various hash set statistics in the object pointed to by 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
ck_hs_stat(3) has no return value.
Errors
Behavior is undefined if hs is uninitialized. Behavior is undefined if this function is called by a non-writer thread.
Releases
Unchanged in 5 releases since Debian 8 (Jessie).