qarray_shepof(3)

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

πŸ’– qarray_shepof β€” bestie edition πŸ’–

okay so this is a page from libqthread, and it's all about finding out which shepherd is holding down a specific element of a distributed array. yes, shepherd. like the lil' worker wrangler. we love them, we respect them, we need to know where they live. πŸ‘


✨ NAME ✨

qarray_shepof, qarray_set_shepof β€” locate a distributed array element

like... the whole vibe is "hey, which shepherd owns this index?" and also "hey, imma tell you which shepherd owns this index." two sides of one iconic coin. πŸ’…


🌸 SYNOPSIS 🌸

#include <qthread/qarray.h>

qthread_shepherd_id_t
qarray_shepof (const qarray *array, const size_t index);

void
qarray_set_shepof (qarray *array, const size_t index,
                   qthread_shepherd_id_t shep);

no cap, that's the whole doorway. include the header, call the thing. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so, these two functions manipulate or report the shepherd that the index element of the array qarray is assigned to.

that's it. that's the whole plot. one of them tells you the shepherd (qarray_shepof), and the other one sets it (qarray_set_shepof). literally the find-my-friend and the you-go-here of distributed arrays. it's giving matchmaker energy fr fr. πŸ’–


🌈 SEE ALSO 🌈

go read those too, bestie, they're the rest of the friend group. πŸ‘‘


and that's the page!! πŸ’œ this one's from libqthread, dated MAY 2009 β€” yeah she's vintage, she's an icon, she's been slaying since before some of us could walk. πŸŽ€ mwah, go locate some elements. πŸ¦‹βœ¨

πŸ“¦ where this page comes from