All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PAPI_lock Class Reference

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

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);
[in]lock– an integer value specifying one of the two user locks: PAPI_USR1_LOCK or PAPI_USR2_LOCK
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

The documentation for this class was generated from the following file: