qt_loop_queue_setchunk(3)

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

πŸ’– qt_loop_queue_setchunk πŸ’–

okay so bestie, real talk β€” this is libqthread's very own qt_loop_queue_setchunk(3), and yes the name is a whole mouthful, we move anyway. 🫢


✨ NAME ✨

qt_loop_queue_setchunk β€” a funciton to specify a loop chunk size

(yes bb, "funciton." that's what the page says, we do not gatekeep the typo, we respect the typo. πŸ’…)


🌸 SYNOPSIS 🌸

#include <qthread/qloop.h>

void
qt_loop_queue_setchunk (qqloop_handle_t *loop, size_tchunk);

πŸ¦‹ DESCRIPTION πŸ¦‹

So this little icon right here gives you a way to specify the chunk size for a self-scheduled loop when you're rolling with the CHUNK scheduling pattern. it's giving "tell the loop how big the pieces should be" and honestly? slay.

πŸ’€ BIG WARNING, NO CAP: this may only be safely used before qt_loop_queue_run() or qt_loop_queue_run_there() have been executed. like, before. not during, not after, not "oops I meant to do it earlier." do it first or the vibe check will end you. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, they're all in the family, iykyk πŸ’œ


libqthread Β· APRIL 2011 Β· qt_loop_queue_setchunk(3)

that's the whole page bestie, source and version and date and everything πŸŽ€βœ¨ go set your chunk size before you run the loop, and you will literally eat. bye ily πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from