summaryrefslogtreecommitdiffstats
path: root/src/H5Dpkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2019-08-20 23:21:53 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2019-08-20 23:21:53 (GMT)
commit67d7d28c038fb027feed570d6e6b25fdab4865dc (patch)
tree3bf3dfb367e2db0a670a95ff92c80cf88c307580 /src/H5Dpkg.h
parent25f982abbd5f0dddf0315f994171cd9c9f037cb9 (diff)
downloadhdf5-67d7d28c038fb027feed570d6e6b25fdab4865dc.zip
hdf5-67d7d28c038fb027feed570d6e6b25fdab4865dc.tar.gz
hdf5-67d7d28c038fb027feed570d6e6b25fdab4865dc.tar.bz2
Begin converting dataset code to use shared file pointer instead of top file
pointer.
Diffstat (limited to 'src/H5Dpkg.h')
-rw-r--r--src/H5Dpkg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Dpkg.h b/src/H5Dpkg.h
index 638c8a5..878fda3 100644
--- a/src/H5Dpkg.h
+++ b/src/H5Dpkg.h
@@ -47,11 +47,13 @@
/* [Simple] Macro to construct a H5D_io_info_t from it's components */
#define H5D_BUILD_IO_INFO_WRT(io_info, ds, str, buf) \
(io_info)->dset = ds; \
+ (io_info)->f_sh = H5F_SHARED((ds)->oloc.file); \
(io_info)->store = str; \
(io_info)->op_type = H5D_IO_OP_WRITE; \
(io_info)->u.wbuf = buf
#define H5D_BUILD_IO_INFO_RD(io_info, ds, str, buf) \
(io_info)->dset = ds; \
+ (io_info)->f_sh = H5F_SHARED((ds)->oloc.file); \
(io_info)->store = str; \
(io_info)->op_type = H5D_IO_OP_READ; \
(io_info)->u.rbuf = buf
@@ -207,6 +209,8 @@ typedef enum H5D_io_op_type_t {
typedef struct H5D_io_info_t {
const H5D_t *dset; /* Pointer to dataset being operated on */
+/* QAK: Delete the f_sh field when oloc has a shared file pointer? */
+ H5F_file_t *f_sh; /* Pointer to shared file struct that dataset is within */
#ifdef H5_HAVE_PARALLEL
MPI_Comm comm; /* MPI communicator for file */
hbool_t using_mpi_vfd; /* Whether the file is using an MPI-based VFD */