qt_loop_queue_addworker(3)
π 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 π
qt_loop(3)qt_loop_balance(3)qt_loop_queue_create(3)qt_loop_queue_run(3)qt_loopaccum_balance(3)qt_loop_queue_create(3)qt_loop_queue_addworker(3)
(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
- 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