CK_RHS_DESTROY(3)
π ck_rhs_destroy(3) β destroy hash set π
okay bestie, so this is a page from the Concurrency Kit manual, aka libck, and you link against it with -lck. It's the one about destroying a hash set. Not "delete one lil thing" β we're talking full teardown, the whole thing, gone. π
β¨ SYNOPSIS β¨
#include <ck_rhs.h>
void
ck_rhs_destroy(ck_rhs_t *hs);
like, that's it. one function, one pointer, zero drama. π
πΈ DESCRIPTION πΈ
So ck_rhs_destroy(3) goes and asks the underlying allocator β the exact one you specified when you set things up with ck_rhs_init(3) β to immediately destroy the object that hs points at. Immediately. No waiting around, no "in a sec", it's giving instant. π
β οΈ BIG ONE, no cap: the user must guarantee that no threads are accessing the object pointed to byhswhenck_rhs_destroy(3)is called. Like, that's on you. If some other thread is still poking at it while you're destroying it, that's not the function's problem, that's a you problem, and it's gonna be a bad time. π
π¦ RETURN VALUES π¦
ck_rhs_destroy(3) has no return value. It returns nothing. Void. Empty. It simply does the thing and dips. β¨
π ERRORS π
This function is guaranteed not to fail. Periodt. π
π SEE ALSO π
the whole squad, fr fr:
ck_rhs_init(3)ck_rhs_move(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_count(3)ck_rhs_reset(3)ck_rhs_reset_size(3)ck_rhs_stat(3)
More info is available at http://concurrencykit.org/ β go look, iykyk π«Ά
and that's the whole page, bestie π this lil gem comes to you from the Concurrency Kit crew, dated September 17, 2012, and the manual page itself is CK_RHS_DESTROY(3). slay, go free your memory responsibly πΈπ
π¦ 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