ck_rhs_reset(3)

ck_rhs_reset3

Remove all keys from a hash set

Usage

#include <ck_rhs.h>

bool

ck_rhs_reset(ck_rhs_t *hs);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_rhs_reset(3) function will remove all keys stored in the hash set pointed to by the hs argument.

Return values

If successful, ck_rhs_reset(3) will return true and will otherwise return false on failure. This function will only fail if a replacement hash set could not be allocated internally.

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).

  1. 9–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.