QB_LOOP_CREATE(3)
β¨ QB_LOOP_CREATE(3) β libqb Programmer's Manual, section 3 β¨
okay bestie, sit down, hydrate, and let me tell you about the lil guy that starts everything in libqb land. this is a section 3 manual page, so it's a library function, not some command you type at the shell β iykyk π
πΈ NAME πΈ
qb_loop_create β Create a new main loop.
like... that's it. that's the whole job. she makes a main loop. main character energy from the jump π
π¦ SYNOPSIS π¦
#include <qb/qbloop.h>
qb_loop_t * qb_loop_create(
void
);
so you gotta pull in the header first β #include <qb/qbloop.h> β and then you call qb_loop_create with no arguments at all, she takes void, she needs nothing from you, she's low-maintenance π
and she hands you back a qb_loop_t *. a pointer. to a loop. iconic.
π DESCRIPTION π
okay so. the DESCRIPTION section on this page is... literally empty. nothing. a whole void. π
that's not me being lazy, that's fr fr what the original page says β there is no description text here. so I'm not gonna invent lore about what this function does internally, because rule number one is: no making stuff up. all we officially know from this page is what the NAME and SYNOPSIS tell us: qb_loop_create creates a new main loop, takes no arguments, and gives you back a qb_loop_t *. periodt.
β RETURN VALUE β
- loop instance. β yeah, that's the whole line. you get a loop instance back. that's your
qb_loop_t *, bestie. go run with it πβοΈβ¨
π₯ SEE ALSO π₯
the whole friend group, all of them, every single one, no one left out π«Ά:
qb_loop_job_del(3)qb_loop_run(3)qb_loop_stop(3)qb_loop_poll_low_fds_event_set(3)qb_loop_signal_del(3)qb_loop_signal_add(3)qb_loop_job_add(3)qb_loop_poll_del(3)qb_loop_destroy(3)qb_loop_timer_expire_time_remaining(3)qb_loop_poll_mod(3)qb_loop_signal_mod(3)qb_loop_timer_del(3)qb_loop_timer_add(3)qb_loop_timer_is_running(3)qb_loop_timer_expire_time_get(3)qb_loop_poll_add(3)
ngl that's a squad. go read them all, they're all part of the same loop life π
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
π reminder to my future self: this page's DESCRIPTION is genuinely blank in the source. don't go adding behaviour notes that aren't there. the vibe check is empty, and that's the truth. π
mwah, that's the page!! this one came out of libqb and it's dated 2025-09-16 β and yeah, the footer says LIBQB and QB_LOOP_CREATE(3), so now you know where she lives. go create a loop, bestie, you got this πβ¨π
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms