PAPI_list_threads(3)
π NAME π
Okay so this is the PAPI_list_threads(3) page from the PAPI manual, bestie β and it does exactly what it says on the label: it gives you the registered thread ids. Slay. β¨
πΈ SYNOPSIS πΈ
Detailed Description
PAPI_list_threads() returns to the caller a list of all thread IDs known to PAPI. Like, the whole roster. π
This call assumes an initialized PAPI library. No initialization? No vibe check pass. π«Ά
C Interface
#include <papi.h>
int PAPI_list_threads(PAPI_thread_id_t *tids, int * number );
π Parameters π
*tidsβ a pointer to a preallocated array. It may beNULLto only return a count of threads. No more than*numbercodes will be stored in the array. So yes, you can passNULLand just get the count β iconic low-effort behavior. π*numberβ an input and output parameter. Input specifies the number of allocated elements in*tids(if non-NULL), and output specifies the number of threads. Itβs giving βmultitasking parameterβ energy. π¦
β Return values β
PAPI_OKβ the call returned successfully. We love a clean win. πPAPI_EINVALβ*numberhas an improper value. Not the vibe. π
π₯ See also π₯
PAPI_get_thr_specificPAPI_set_thr_specificPAPI_register_threadPAPI_unregister_threadPAPI_thread_init,PAPI_thread_id
These are the besties in the thread-management group chat, iykyk. π
π Author π
Generated automatically by Doxygen for PAPI from the source code.
Bestie, thatβs the whole page! Itβs from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:48 β periodt. ππ
β¨
π¦ where this page comes from
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- ubuntu resolute: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- ubuntu stonking: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms