qarray_elem(3)
β¨ 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()andqarray_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
- fedora 43: qthreads-devel 1.22^20251007gitcedb1fc-1.fc43 Β· BSD-3-Clause AND MIT AND dtoa
- fedora 44: qthreads-devel 1.22^20251007gitcedb1fc-2.fc44 Β· BSD-3-Clause AND MIT AND dtoa
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms