CK_RHS_COUNT(3)
โจ CK_RHS_COUNT(3) โจ
okay bestie, so this is a page from the Concurrency Kit manual โ that's libck, and yeah you link it with -lck ๐. It's a lil three-parter about counting the keys in your hash set, and honestly? It ate.
๐ธ NAME ๐ธ
ck_rhs_count โ returns number of entries in hash set ๐งฎโจ
๐ LIBRARY ๐
Concurrency Kit (libck, -lck) ๐ซถ
๐ฆ SYNOPSIS ๐ฆ
lowkey just include the header and call it, that's the whole vibe:
#include <ck_rhs.h>
unsigned long
ck_rhs_count(ck_rhs_t *hs);
๐ DESCRIPTION ๐
so the way that ck_rhs_count(3) works is: you hand it your hash set hs, and it tells you how many keys are currently stored in it. that's it. that's the function. no notes. ๐
Returns an unsigned long because your key count deserves room to grow, slay. ๐
๐ ERRORS ๐
โ ๏ธ okay so here's the serious part, no cap:
- Behavior is undefined if
hsis uninitialized. like, don't do that. ๐ - Behavior is undefined if this function is called by a non-writer thread. writer threads only bestie, i don't make the rules ๐ญ
๐ SEE ALSO ๐
the whole girl squad, all linked up:
ck_rhs_init(3)ck_rhs_move(3)ck_rhs_destroy(3)CK_RHS_HASH(3)ck_rhs_iterator_init(3)ck_rhs_next(3)ck_rhs_get(3)ck_rhs_put(3)ck_rhs_put_unique(3)ck_rhs_set(3)ck_rhs_fas(3)ck_rhs_remove(3)ck_rhs_grow(3)ck_rhs_rebuild(3)ck_rhs_gc(3)ck_rhs_reset(3)ck_rhs_reset_size(3)ck_rhs_stat(3)
and if you want even more lore, it's all waiting for you at http://concurrencykit.org/ โจ
okay that's the whole page pookie ๐ this one's from the Concurrency Kit (libck, -lck) era, dated September 17, 2012 โ yes she's an elder but she still serves, and yes this was CK_RHS_COUNT(3). periodt. ๐๐ฆ๐
๐ฆ 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