Debian Codegraph @

src/mpid/ch3/channels/nemesis/include/mpid_nem_pre.h

raw
1 /*
2 * Copyright (C) by Argonne National Laboratory
3 * See COPYRIGHT in top-level directory
4 */
5
6 #ifndef MPID_NEM_PRE_H_INCLUDED
7 #define MPID_NEM_PRE_H_INCLUDED
8
9 #include "mpid_nem_net_module_defs.h"
10 #include "mpid_nem_defs.h"
11
12 #if defined(HAVE_PTHREAD_H)
13 #include <pthread.h>
14 #endif
15
16 typedef pthread_mutex_t MPIDI_CH3I_SHM_MUTEX;
17
18 #define MPIDI_CH3_WIN_DECL \
19 void *shm_base_addr; /* base address of shared memory region */ \
20 MPI_Aint shm_segment_len; /* size of shared memory region */ \
21 MPL_shm_hnd_t shm_segment_handle; /* handle to shared memory region */ \
22 MPIDI_CH3I_SHM_MUTEX *shm_mutex; /* shared memory windows -- lock for \
23 accumulate/atomic operations */ \
24 MPL_shm_hnd_t shm_mutex_segment_handle; /* handle to interprocess mutex memory \
25 region */ \
26 \
27 void *info_shm_base_addr; /* base address of shared memory region for window info */ \
28 MPI_Aint info_shm_segment_len; /* size of shared memory region for window info */ \
29 MPL_shm_hnd_t info_shm_segment_handle; /* handle to shared memory region for window info */ \
30
31 #endif /* MPID_NEM_PRE_H_INCLUDED */