CK_RHS_GC(3)

✨ CK_RHS_GC(3) ✨

okay bestie, so like... this is the manual page for ck_rhs_gc from the Concurrency Kit library. that's libck, link it with -lck. it does maintenance on a hash set. yes, the hash set needs a lil spa day sometimes. πŸ’…


🌸 LIBRARY 🌸

Concurrency Kit (libck, -lck) β€” she's the whole friend group, and this function is one of her girls. 🫢


✨ SYNOPSIS ✨

like, the vibe check in code form:

#include <ck_rhs.h>

bool
ck_rhs_gc(ck_rhs_t *hs);

πŸ’– DESCRIPTION πŸ’–

so ck_rhs_gc(3) runs a bunch of maintenance routines on the hash set that hs points to. she's doing self-care, okay?? ✨

and like, the specific glow-up here includes recalculating the maximum number of probes. that's the part we know about. no cap. 🧚

not me making a hash set sound like it's getting its nails done, but honestly? iconic. πŸ’…

πŸ¦‹ RETURN VALUES πŸ¦‹

if everything went great, ck_rhs_gc(3) returns true πŸ’š

if it didn't, it returns false β€” and the reason is memory allocation failure. that's the only reason, so don't go looking for drama elsewhere. 😭


πŸ”₯ ERRORS πŸ”₯

the only way this function comes back with false is if there were internal memory allocation failures. that's it. that's the whole list. periodt. πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

the whole bestie roster, in order, no one left behind:

and if you want even more, there's additional information available at http://concurrencykit.org/ 🌈 go be nosy, you deserve it. πŸ“


okay that's the whole page!! this one's from December 17, 2013, and it's part of the Concurrency Kit manual set. mwah, go call ck_rhs_gc on something. πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from