qlfqueue_create(3)

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

πŸ’– 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