PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
papi_lock.h
Go to the documentation of this file.
1 #ifndef _PAPI_DEFINES_H
2 #define _PAPI_DEFINES_H
3 
4 /* Thread related: locks */
5 
6 #define INTERNAL_LOCK PAPI_NUM_LOCK+0 /* papi_internal.c */
7 #define MULTIPLEX_LOCK PAPI_NUM_LOCK+1 /* multiplex.c */
8 #define THREADS_LOCK PAPI_NUM_LOCK+2 /* threads.c */
9 #define HIGHLEVEL_LOCK PAPI_NUM_LOCK+3 /* papi_hl.c */
10 #define MEMORY_LOCK PAPI_NUM_LOCK+4 /* papi_memory.c */
11 #define COMPONENT_LOCK PAPI_NUM_LOCK+5 /* per-component */
12 #define GLOBAL_LOCK PAPI_NUM_LOCK+6 /* papi.c for global variable (static and non) initialization/shutdown */
13 #define CPUS_LOCK PAPI_NUM_LOCK+7 /* cpus.c */
14 #define NAMELIB_LOCK PAPI_NUM_LOCK+8 /* papi_pfm4_events.c */
15 
16 
17 #define NUM_INNER_LOCK 9
18 #define PAPI_MAX_LOCK (NUM_INNER_LOCK + PAPI_NUM_LOCK)
19 
20 #include OSLOCK
21 
22 
23 #endif