qthread_syncvar_status(3)

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

✨ NAME ✨

qthread_syncvar_status β€” return the full/empty status of a syncvar_t πŸ’…

Okay bestie, welcome to the qthread_syncvar_status(3) page from libqthread. It's giving "quick little status check" energy, and honestly? Iconic. 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <qthread.h>

int
qthread_syncvar_status (syncvar_t *addr);

🌸 DESCRIPTION 🌸

So like, qthread_syncvar_status() is the function that looks at addr and tells you what's tea. If the address is full, it returns 1. If the address is empty, it returns 0. That's it, that's the vibe. ✨

It is thread-safe, and it should be very quick. No cap, it's fast fr fr. On 64-bit platforms, it usually reduces to a read and a bitshift. Periodt. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘


xoxo, your libqthread bestie πŸ¦‹πŸ’– this page is literally qthread_syncvar_status(3), source/version libqthread, dated JUNE 2010. Slay, bye! πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from