qlfqueue_empty(3)

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

✨ qlfqueue_empty(3) ✨

okay bestie, welcome to the libqthread corner of the manual, where we vibe with lock-free data structures and honestly? we're thriving πŸ’…


🌸 NAME 🌸

qlfqueue_empty β€” the little function that tells you whether a lock-free queue is empty 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qthread/qlfqueue.h>

int
qlfqueue_empty (qlfqueue_t *q);

like yes, that's the whole thing, she's small but she's iconic ✨


πŸ’– DESCRIPTION πŸ’–

so basically, qlfqueue_empty() checks whether the qlfqueue you handed it is empty. that's it. that's the job. she does one thing and she does it well, no cap πŸ’€

you pass in your queue pointer q and she looks at it and goes "yeah, nothing in here" or "nope, there's stuff". main character energy fr fr 🌟


πŸŽ€ RETURN VALUE πŸŽ€

  • 1 β€” the queue is empty. slay, nothing to dequeue, go touch grass 🌱
  • 0 β€” the queue is not empty. there's stuff in there, bestie πŸ‘€

and that's the whole return value situation, no surprises, no plot twists πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, they're the rest of the friend group 🫢✨


okay so that's the whole page!! this lil baddie comes to you courtesy of libqthread, dated APRIL 2011 β€” yes she's been serving since 2011 and she's still relevant, that's longevity, that's legacy, that's periodt πŸ’…πŸ’– bye bestie, go check your queues 🌈

πŸ“¦ where this page comes from