logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PAPI_lock - Lock one of two mutex variables defined in papi.h.

Author

       Generated automatically by Doxygen for PAPI from the source code.

Version 7.1.0.0                                  Thu Dec 14 2023                                    PAPI_lock(3)

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.

       CInterface:
           #include <papi.h>
           void PAPI_lock(intlock);

       Parameterslock -- an integer value specifying one of the two user locks: PAPI_USR1_LOCK or PAPI_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.

       SeealsoPAPI_unlockPAPI_thread_init

Name

       PAPI_lock - Lock one of two mutex variables defined in papi.h.

Synopsis

See Also