CK_HT_COUNT(3)
π CK_HT_COUNT π
okay bestie, welcome to the CK_HT_COUNT(3) page, and yes it's from the Concurrency Kit era of your life now, we're doing this π«Ά
β¨ NAME β¨
ck_ht_count β return count of key-value pairs in hash table
π LIBRARY π
Concurrency Kit β link it with libck, so like -lck on your compile line. yes literally that's it. π
πΈ SYNOPSIS πΈ
#include <ck_ht.h>
uint64_t
ck_ht_count(ck_ht_t *ht);
π¦ DESCRIPTION π¦
okay so here's the vibe: ck_ht_count() hands you back the number of entries chillin' in the hash table that the ht argument points at. that's the whole thing. it counts your little key-value pairs and returns them as a uint64_t. iconic behavior honestly π
but listen, and this part is NOT optional β this function may only be called without the presence of concurrent write operations. like, no writers doing their writer thing while you're counting. read-only energy only. do not test her. π
π ERRORS π
if ht has not been initialized, the behavior is undefined. not "oopsie" undefined, like actual undefined behavior, the spooky kind. initialize your table first, bestie, please, i'm begging π
π SEE ALSO π
your whole little hash table friend group, all here, all slaying:
ck_ht_stat(3)ck_ht_init(3)ck_ht_destroy(3)ck_ht_hash(3)ck_ht_hash_direct(3)ck_ht_set_spmc(3)ck_ht_put_spmc(3)ck_ht_gc(3)ck_ht_get_spmc(3)ck_ht_grow_spmc(3)ck_ht_remove_spmc(3)ck_ht_reset_size_spmc(3)ck_ht_reset_spmc(3)ck_ht_entry_empty(3)ck_ht_entry_key_set(3)ck_ht_entry_key_set_direct(3)ck_ht_entry_key(3)ck_ht_entry_key_length(3)ck_ht_entry_value(3)ck_ht_entry_set(3)ck_ht_entry_set_direct(3)ck_ht_entry_key_direct(3)ck_ht_entry_value_direct(3)ck_ht_iterator_init(3)ck_ht_next(3)
and if you want even more, Additional information available at http://concurrencykit.org/ πβ¨
okay that's the page, ily, go count your entries responsibly π
Concurrency Kit Β· page date March 29, 2012 Β· CK_HT_COUNT(3) β mwah, bye bestie ππ¦π
π¦ where this page comes from
- alpine 3.24: ck-doc 0.7.2-r1 Β· BSD-2-Clause AND Apache-2.0
- debian bookworm: libck-dev 0.7.1-10 Β· BSD-2-Clause
- debian trixie: libck-dev 0.7.2-6 Β· BSD-2-Clause
- epel 10: ck-devel 0.7.2-1.el10_1 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- epel 9: ck-devel 0.7.0-10.el9 Β· BSD
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- nixos 26.05: ck 0.7.2
- nixpkgs unstable: ck 0.7.2
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- ubuntu jammy: libck-dev 0.7.1-6ubuntu2 Β· BSD-2-Clause
- ubuntu noble: libck-dev 0.7.1-13build1 Β· BSD-2-Clause
- ubuntu questing: libck-dev 0.7.2-5ubuntu1
- ubuntu resolute: libck-dev 0.7.2-5ubuntu2 Β· BSD-2-Clause
- ubuntu stonking: libck-dev 0.7.2-11 Β· BSD-2-Clause
- Copyright 2012-2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms