QB_LOG_THR...IORITY_SET(3)
π qb_log_thread_priority_set β the libqb glow-up for your logging thread π
okay bestie, so this is one of those pages from the libqb Programmer's Manual (that's the <rainbow>libqb</rainbow> library, the cute little logging/utilities bestie that a bunch of daemons lean on). And this particular function? It's the one you call when you're doing threaded logging and you want to set the pthread policy and priority. Like, giving your logging thread a whole personality and a little VIP lane. π
β¨ NAME β¨
qb_log_thread_priority_set β when you're out here using threaded logging, this sets the pthread policy and priority. that's it, that's the whole job. π
πΈ SYNOPSIS πΈ
#include <qb/qblog.h>
int32_t qb_log_thread_priority_set(
int32_t policy,
int32_t priority
);
so you pull in <qb/qblog.h>, and you hand it a policy and a priority, both int32_t, and it gives you back an int32_t. two ints in, one int out, no cap. π¦
π DESCRIPTION π
okay so real talk β the original manpage literally leaves this section empty. like, blank. nothing. a whole heading with no content, which is giving "left as an exercise for the reader" energy. π
so we're not gonna invent anything here, because inventing behaviour is not the vibe. the NAME section tells you what it does (sets the pthread policy and priority when you're using threaded logging), and the RETURN VALUE section tells you how it tells you how it went. that's what we've got. periodt. π«Ά
ngl, if you want the deep lore onpolicyandpriorityvalues, that's apthreadthing, not a libqb invention β go check your system's pthread docs. i'm not out here making stuff up. π
π RETURN VALUE π
-errnoβ on error. yep, it hands you back a negative errno, so the failure is right there in the sign. π0β success. she ate. π₯
π SEE ALSO π
the whole girlies-of-libqb squad, in the exact order the page shouts them out:
qb_log_filter_fn_set(3)qb_log_from_external_source_va2(3)qb_log_thread_start(3)qb_log_target_user_data_get(3)qb_log_tags_stringify_fn_set(3)qb_log_file_reopen(3)qb_log_fini(3)qb_log_callsites_dump(3)qb_log_ctl2(3)qb_log_target_user_data_set(3)qb_log_target_format(3)qb_log_facility2int(3)qb_log_callsites_register(3)qb_log_filter_ctl2(3)qb_log_file_close(3)qb_log_format_set(3)qb_log_real_(3)qb_log_from_external_source_va(3)qb_log_callsite_get(3)qb_log_blackbox_write_to_file(3)qb_log_real_va_(3)qb_log_from_external_source(3)qb_log_blackbox_print_from_file(3)qb_log_facility2str(3)qb_log_callsite_get2(3)qb_log_ctl(3)qb_log_filter_ctl(3)qb_log_custom_close(3)qb_log_init(3)qb_log_file_open(3)qb_log_custom_open(3)
thirty-one little cross-references, all of them linking to their own pages. iykyk. β
π COPYRIGHT π
Copyright (c) 2017 Red Hat, Inc.
okay and for the little sign-off moment: this page lives in the libqb manual, and the version/date stamp on it is 2025-09-16. so if you're citing it, that's the receipts. π«Άβ¨
now go set that thread priority and slay, bestie. π
π¦ 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