qt_loop_queue_addworker(3)

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

πŸ’– qt_loop_queue_addworker β€” from the libqthread manual πŸ’–

okay bestie, sit down, we're learning about worker-adding today and it's gonna be so chill 🌸


✨ NAME ✨

qt_loop_queue_addworker β€” adds a worker to an ongoing loop 🫢


✨ SYNOPSIS ✨

#include <qthread/qloop.h>

void
qt_loop_queue_addworker (qqloop_handle_t *loop,
                         qthread_shepherd_id_t shep);

✨ DESCRIPTION ✨

so like. this function adds a shepherd to the list of participating shepherds for a given loop queue πŸ’… that's it, that's the whole job, she's a one-task icon.

and the best part? she's fast. the function returns quickly, because all the bookkeeping is then assumed by the original thread β€” the one that called qt_loop_queue_run() πŸ‘‘ so shep gets added, you get your answer, and the original thread handles all the boring admin behind the scenes. no cap, that's the deal 🀝


✨ SEE ALSO ✨

the whole friend group, obviously πŸŽ€

(yes she's in her own SEE ALSO list. main character energy fr fr, we love a self-referential queen πŸ’€)


libqthread Β· JUNE 2010 β€” mwah, that's the whole page bestie, love u, go add some workers πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from