1PAPI_lock(3)                         PAPI                         PAPI_lock(3)
2
3
4

NAME

6       PAPI_lock - Lock one of two mutex variables defined in papi.h
7        PAPI_unlock - Unlock one of the mutex variables defined in papi.h
8
9

SYNOPSIS

11       C Interface
12       #include <papi.h>
13       void PAPI_lock(intlock);
14       void PAPI_unlock(intlock);
15       Fortran Interface
16       #include fpapi.h
17       PAPIF_lock(C_INT lock)
18       PAPIF_unlock(C_INT lock)
19
20

DESCRIPTION

22       PAPI_lock()  Grabs  access to one of the two PAPI mutex variables. This
23       function is provided to the user to have a platform independent call to
24       (hopefully) efficiently implemented mutex.
25
26       PAPI_unlock() unlocks the mutex acquired by a call to PAPI_lock.
27
28

ARGUMENT

30       lock  --   an  integer  value  specifying  one  of  the two user locks:
31       PAPI_USR1_LOCK or PAPI_USR2_LOCK
32
33

RETURN VALUES

35       There are no return values for these calls. Upon return from  PAPI_lock
36       the  current thread has acquired exclusive access to the specified PAPI
37       mutex.
38
39

BUGS

41       These functions have no known bugs.
42
43

SEE ALSO

45       PAPI_thread_init(3)
46
47
48
49PAPI Programmer's Reference     September, 2004                   PAPI_lock(3)
Impressum