ck_rhs_stat3
Get hash set status
Usage
#include <ck_rhs.h>
void
ck_rhs_stat(ck_rhs_t *hs, struct ck_rhs_stat *st);
Library
Concurrency Kit (libck, -lck)
Overview
The ck_rhs_stat(3) function will store various hash set statistics in the object pointed to by st. The ck_rhs_stat structure is defined as follows:
struct ck_rhs_stat {
unsigned long n_entries; /* Current number of keys in hash set. */
unsigned int probe_maximum; /* Longest read-side probe sequence. */
};
Return values
ck_rhs_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 4 releases since Debian 9 (Stretch).