qlfqueue_create(3)
π qlfqueue_create(3) β libqthread π
okay bestie, gather round, we're gonna talk about allocating a lock-free queue and honestly? iconic behavior.
β¨ NAME β¨
qlfqueue_create β allocate a lock-free queue π¦
β¨ SYNOPSIS β¨
#include <qthread/qlfqueue.h>
qlfqueue_t *
qlfqueue_create (void);
like, that's it. that's the whole call. no args, no drama, just vibes π
β¨ DESCRIPTION β¨
so this function initializes a qlfqueue lock-free queue object. yes queen, it's giving brand new queue energy β¨
and the way this queue works? it provides global ordering, and it pulls that off by using the qthread_cas_ptr() functions. no locks, no waiting around, just compare-and-swap doing its lil thing π
no cap: this is a lock-free queue, so the whole point is that nobody's sitting there holding a lock while you're trying to get stuff done. main character energy fr fr.
β¨ SEE ALSO β¨
go read those too, iykyk π«Ά
and that's the whole page, bestie!! this one came out of libqthread, dated OCTOBER 2009 β yeah she's an elder but she still slays ππ go forth and create ur queues, ily ππ§
π¦ 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