qthread_sorted_sheps(3)
π qthread_sorted_sheps β bestie's guide to shepherd distance π
okay so you're in libqthread land and you need to know who's near you and who's, like, across the whole entire machine. this is the page for that. welcome. π«Ά
β¨ NAME β¨
qthread_sorted_sheps, qthread_sorted_sheps_remote β returns a list of other shepherds, sorted by their distance
like it literally says on the tin bestie: you get back a lil roster of the other shepherds, ordered from "basically my neighbor" to "we have never met." no cap. π¦
β¨ SYNOPSIS β¨
#include <qthread.h>
const qthread_shepherd_id_t *
qthread_sorted_sheps (void);
const qthread_shepherd_id_t *
qthread_sorted_sheps_remote (const qthread_shepherd_id_t src);
β¨ DESCRIPTION β¨
so this function returns a list of shepherds, sorted by their distance from either the current shepherd or the specified shepherd src. pick your fighter. π
the list is an array of qthread_shepherd_id_t objects, and its length is one less than the number of shepherds β and that number of shepherds is determined by qthread_num_shepherds(), okay, we're being precise here.
π important: the source shepherd is not included in the list. it's giving "everyone except me." it's not about you. it's about the group chat.
β οΈ and listen, the returned array must not be altered. do not touch. do not edit. do not be that girl. hands off the array, bestie. π
β¨ RETURN VALUE β¨
these functions will return either a pointer to an array of qthread_shepherd_id_t objects, or NULL if the specified shepherd is either invalid or does not have a specific CPU affinity.
so like. you get the array. or you get NULL. there is no third option, no in-between, no situationship. periodt. π
anyway that's the whole page, mwah π this was the libqthread manual, qthread_sorted_sheps(3), dated APRIL 2011 β yeah she's vintage, she's an icon, she ate. go sort some shepherds bestie, ily, bye πβ¨
π¦ 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