qthread_num_shepherds(3)

πŸ“¦ version 1.22^20251007gitcedb1fc, in fedora 43, fedora 44

✨ qthread_num_shepherds ✨

okay bestie, welcome to libqthread's manual page for qthread_num_shepherds πŸ’– this one's short and sweet, like a little snack, but it's lowkey important so pay attention 🫢


🌸 NAME 🌸

qthread_num_shepherds β€” returns the number of shepherds πŸ‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <qthread.h>

qthread_shepherd_id_t
qthread_num_shepherds ();

like yes, that's the whole thing, no arguments, she takes nothing and gives you a number πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

so this function returns the number of shepherds. that's it. that's the vibe ✨

and here's the tea: this value is one larger than the largest valid shepherd id πŸ”₯ so if you're out here doing id math, don't forget that little off-by-one situation, because she WILL humble you 😭


πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, they're all part of the same friend group πŸ’–


and that's a wrap, bestie πŸŽ€ this page came to you from libqthread, dated APRIL 2011, and it's literally iconic for it πŸ‘‘ no cap, she's been serving since 2011 and she's still here. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from