qdqueue_enqueue(3)
β¨ qdqueue_enqueue β the libqthread girlie's guide to yeeting stuff onto a distributed queue β¨
okay so bestie, you're in the libqthread section of the manual (that's the 3 in the title, iykyk), and today's main character is qdqueue_enqueue π
π NAME π
qdqueue_enqueue β append an element to a distributed queue. literally just dropping something onto the end of the queue. no cap. π
π¦ SYNOPSIS π¦
#include <qthread/qdqueue.h>
int
qdqueue_enqueue (qdqueue_t *q, void *elem);
int
qdqueue_enqueue_there (qdqueue_t *q, void *elem,
qthread_shepherd_id_t there);
πΈ DESCRIPTION πΈ
so there's two of these functions and they both do the same cute little thing: they append elements to distributed queues. π«Ά
qdqueue_enqueue()β this one is lowkey justqdqueue_enqueue_there()but where thetherelocation is the current shepherd. like, the result ofqthread_shep(NULL). she's staying home, no travel arc, periodt. β¨
ngl the "current shepherd" thing is doing a lot of heavy lifting here, so remember: same function, just pinned to where you already are. π
π RETURN VALUE π
the return value will be 0 for success, or it will indicate an error. that's it, that's the vibe check. π
π₯ ERROR CODES π₯
possible error codes are:
QTHREAD_BADARGSβ this one means one of the input arguments was null π like bestie, you handed her nothing. she cannot work with nothing. π
π SEE ALSO π
and that's the whole page, babe π this was libqthread, dated APRIL 2011 β iconic behaviour from the archives, fr fr. go enqueue something. slay π
β¨
π¦ 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