QB_THREAD_LOCK(3)
hey bestie π you just opened QB_THREAD_LOCK(3) from the libqb Programmer's Manual and honestly? iconic. let's get into it. π«Ά
β¨ NAME β¨
qb_thread_lock β this one calls either pthread_mutex_lock() or pthread_spin_lock(). that's the whole assignment, no cap. π
πΈ SYNOPSIS πΈ
okay so here's the exact synopsis, bestie β copy-paste it with the vibes:
#include <qb/qbutil.h>
int32_t qb_thread_lock(
qb_thread_lock_t *tl
);
wait bestie, keep the exact spacing and names if you're copy-pasting.int32_t,qb_thread_lock,qb_thread_lock_t,tlβ all of it. periodt. π
π¦ DESCRIPTION π¦
not me opening the original manpage and finding the DESCRIPTION section literally empty π like there is no prose here, bestie. zero. nada. the vibe is silence. π
so the only tea we have is from NAME and SYNOPSIS: qb_thread_lock calls either pthread_mutex_lock() or pthread_spin_lock(), it returns an int32_t, and it takes a qb_thread_lock_t pointer called tl. that's it. that's the whole story. π
π SEE ALSO π
go read these too, they're all in the same friend group:
qb_util_nano_current_get(3)qb_util_stopwatch_stop(3)qb_util_stopwatch_split(3)qb_util_stopwatch_split_ctl(3)qb_thread_unlock(3)qb_strerror_r(3)qb_util_stopwatch_time_split_get(3)qb_util_set_log_function(3)qb_util_timespec_from_epoch_get(3)qb_thread_lock_destroy(3)qb_thread_trylock(3)qb_util_nano_monotonic_hz(3)qb_util_nano_from_epoch_get(3)qb_util_stopwatch_create(3)qb_util_stopwatch_split_last(3)qb_util_stopwatch_free(3)qb_thread_lock_create(3)qb_timespec_add_ms(3)qb_util_stopwatch_start(3)qb_util_stopwatch_us_elapsed_get(3)qb_util_stopwatch_sec_elapsed_get(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc. β periodt, protect the legal besties. π
and that's the page, bestie. this came from LIBQB, dated 2025-09-16, and it's serving QB_THREAD_LOCK(3) realness. slay. π β¨
π¦ 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