File: papi_lock.h

package info (click to toggle)
papi 5.7.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (23 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _PAPI_DEFINES_H
#define _PAPI_DEFINES_H

/* Thread related: locks */

#define INTERNAL_LOCK           PAPI_NUM_LOCK+0 /* papi_internal.c */
#define MULTIPLEX_LOCK          PAPI_NUM_LOCK+1 /* multiplex.c */
#define THREADS_LOCK            PAPI_NUM_LOCK+2 /* threads.c */
#define HIGHLEVEL_LOCK          PAPI_NUM_LOCK+3 /* papi_hl.c */
#define MEMORY_LOCK             PAPI_NUM_LOCK+4 /* papi_memory.c */
#define COMPONENT_LOCK          PAPI_NUM_LOCK+5 /* per-component */
#define GLOBAL_LOCK             PAPI_NUM_LOCK+6 /* papi.c for global variable (static and non) initialization/shutdown */
#define CPUS_LOCK               PAPI_NUM_LOCK+7 /* cpus.c */
#define NAMELIB_LOCK            PAPI_NUM_LOCK+8 /* papi_pfm4_events.c */


#define NUM_INNER_LOCK  9
#define PAPI_MAX_LOCK   (NUM_INNER_LOCK + PAPI_NUM_LOCK)

#include OSLOCK


#endif