qlfqueue_dequeue(3)
π qlfqueue_dequeue β bestie, we're taking things OUT of the queue π
okay so this is a page from the libqthread manual, section 3 (the library functions girlies β¨). It's called qlfqueue_dequeue, and it lives in the lock-free queue neighborhood, and honestly? it's giving "pop the front, no locks, no drama". π
β¨ NAME β¨
qlfqueue_dequeue β remove an element from a lock-free queue
Like, that's it. That's the whole job. Take one thing off the queue and hand it to you. π«Ά
πΈ SYNOPSIS πΈ
#include <qthread/qlfqueue.h>
void *
qlfqueue_dequeue (qlfqueue_t *q);
so you gotta include that header first, no cap, or the compiler will simply not know her. π¦
π DESCRIPTION π
okay so picture this: you've got a queue, right? And there's stuff in it. This function removes an element from the queue and hands you back a pointer to it. That's the vibe. You give her the queue, she gives you a pointer. Main character energy, zero locks involved. β¨
No lock. No waiting around. Just dequeue and slay. π
β RETURN VALUE β
The return value is one of the pointers that was enqueued in the queue. Periodt. That's literally it β one of the pointers you (or somebody) put in there with enqueue comes back out. π
π SEE ALSO π
the whole friend group, fr fr:
and that's the page bestie!! π this little icon of a manual comes to you from libqthread, dated APRIL 2011 β yeah she's an elder but she still ate, and she's still qlfqueue_dequeue(3). go forth and dequeue responsibly. ππβ¨
π¦ 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