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 hs is 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:

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