qarray_elem(3)

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

✨ qarray_elem ✨

okay bestie, welcome to libqthread's qarray_elem(3) page πŸ’– this one's short and sweet, no cap β€” it's literally just "gimme a pointer to one element of a distributed array," and honestly? iconic.


🌸 NAME 🌸

qarray_elem β€” return a pointer to a distributed array element 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <qthread/qarray.h>

void *
qarray_elem (const qarray * array, const size_t index);

void *
qarray_elem_nomigrate (const qarray * array, const size_t index);

void *
qarray_elem_migrate (const qarray * array, const size_t index);

πŸ’… DESCRIPTION πŸ’…

so here's the vibe. these three functions all return a pointer to the index element of the array distributed array. that's it, that's the whole job. main character energy, minimal effort, we love that for them ✨

the one that's lowkey different is qarray_elem_migrate() β€” it does everything the others do, but additionally it migrates the calling thread to the shepherd of the element you specified. so if you need your thread to actually be where the data is, that's your girl πŸ’«

πŸ¦‹ heads up bestie: qarray_elem_nomigrate() and qarray_elem_migrate() are the explicit versions of that behaviour β€” one stays put, one travels. qarray_elem() is just the plain one. no extra claims, just what the page says, fr fr.

🌈 SEE ALSO 🌈


and that's a wrap on the libqthread qarray_elem(3) page, brought to you by libqthread, dated APRIL 2011 πŸ’œ go forth and index responsibly, bestie β€” mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from