PAPI_lock(3)
π NAME π
PAPI_lock β Lock one of two mutex variables defined in papi.h. Bestie, this is the PAPI_lock(3) page from the PAPI manual, and it's here to hand you a clean little lock moment πβ¨
β¨ SYNOPSIS β¨
Okay so this is PAPI_lock(3), and the whole vibe is: grab one of the PAPI mutexes with a platform independent call. No cap, that's the headline π
πΈ Detailed Description πΈ
PAPI_lock() grabs access to one of the two PAPI mutex variables. This function is provided to the user to have a platform independent call to a (hopefully) efficiently implemented mutex. It's giving "portable lock energy" fr fr π
π C Interface π
C Interface:
#include <papi.h>
void PAPI_lock(int lock);
π¦ Parameters π¦
lockβ an integer value specifying one of the two user locks:PAPI_USR1_LOCKorPAPI_USR2_LOCKπ₯
π Returns π
There is no return value for this call. Upon return from PAPI_lock the current thread has acquired exclusive access to the specified PAPI mutex. That's the whole serve: you come back holding the exclusive access, periodt π«
π See also π
PAPI_unlockPAPI_thread_init
π Author π
Generated automatically by Doxygen for PAPI from the source code. The author line is literally iconic in its automation era π€β¨
Ciao bestie π
β this page is from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:48 π«Άπ
π¦ 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