PAPI_lock(3)

PAPI_lock3

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

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.

C Interface:

#include <papi.h>
void PAPI_lock(int lock);

Parameters

lock -- 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.

See also

PAPI_unlock

PAPI_thread_init

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

Generated automatically by Doxygen for PAPI from the source code.

From libpapi-dev 7.1.0-5+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.