ck_hs_reset_size(3)

ck_hs_reset_size3

Remove all keys from a hash set

Usage

#include <ck_hs.h>

bool

ck_hs_reset_size(ck_hs_t *hs, unsigned long size);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_hs_reset_size(3) function will remove all keys stored in the hash set pointed to by the hs argument and create a new generation of the hash set that is preallocated for size entries.

Return values

If successful, ck_hs_reset_size(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 5 releases since Debian 8 (Jessie).

  1. 8–13

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