qthread_retloc(3)
β¨ qthread_retloc β¨
okay bestie, welcome to libqthread section 3 β this one's a lil three-liner and she is iconic for being exactly what she says on the tin π
πΈ NAME πΈ
qthread_retloc β hands you a pointer to your qthread's return location, no cap π
π¦ SYNOPSIS π¦
#include <qthread.h>
aligned_t *
qthread_retloc (void);
π DESCRIPTION π
so basically, this function returns the location that the return value of the current thread is gonna get stored into β if one has actually been defined. that's it, that's the whole vibe. she's not doing tricks, she's just pointing you at where the good stuff lives π«Ά
π RETURN VALUE π
- Returns a pointer to the location that the thread's return value will be stored in.
- But listen β if the thread's return value is not going to be stored via FEBs</>, this function just returns
NULL. no pointer, no location, no drama, justNULL. π
fr fr, check for that NULL before you go dereferencing anything, bestie. she will not warn you twice π
π SEE ALSO π
go read those too, they're the rest of the friend group β¨
libqthread Β· APRIL 2011 β that's the source, the version, and the date all bundled up like a lil time capsule from 2011 π mwah, thanks for reading, 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