PAPI_thread_id(3)
π PAPI_thread_id(3) π
okay bestie, welcome to the PAPI manual page for PAPI_thread_id β the little function that tells you the thread identifier of the current thread. itβs giving βwhich thread am I?β main character energy, and weβre obsessed. π«Ά
πΈ NAME πΈ
PAPI_thread_id β Get the thread identifier of the current thread.
β¨ SYNOPSIS β¨
Detailed Description
π₯ Return values π₯
PAPI_EMISCis returned if there are no threads registered. π-1is returned if the thread id function returns an error. π
This function returns a valid thread identifier. It calls the function registered with PAPI through a call to PAPI_thread_init(). no cap, thatβs the whole vibe. π
Hereβs the example, kept exactly as it is so you can trust it:
unsigned long tid;
if ((tid = PAPI_thread_id()) == (unsigned long int)-1 )
exit(1);
printf("Initial thread id is: %lu\n", tid );
π See also π
PAPI_thread_init
π Author π
Generated automatically by Doxygen for PAPI from the source code.
Thatβs the whole page, bestie! π¦ Itβs from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:49, and the manual page is PAPI_thread_id(3). slay. π
π¦ 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