summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr_private.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-03-25 00:39:37 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-03-25 00:39:37 (GMT)
commitfeb20aac304b39e18c70f88cae2f7cf7d5c82db2 (patch)
treee15d7e751af4e3c42e77ea955d91db4cf27a71cf /src/H5FDvfd_swmr_private.h
parentbdac2ecdbff2c389a222b3d93ff1eb1d23ec6b23 (diff)
downloadhdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.zip
hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.gz
hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.bz2
Formats the source and updates the gcc warning pragmas
Diffstat (limited to 'src/H5FDvfd_swmr_private.h')
-rw-r--r--src/H5FDvfd_swmr_private.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/H5FDvfd_swmr_private.h b/src/H5FDvfd_swmr_private.h
index da10f94..1925682 100644
--- a/src/H5FDvfd_swmr_private.h
+++ b/src/H5FDvfd_swmr_private.h
@@ -12,20 +12,20 @@
#ifndef H5FDvfd_swmr_private_H
#define H5FDvfd_swmr_private_H
-#include "H5queue.h" /* for TAILQ_* */
+#include "H5queue.h" /* for TAILQ_* */
/* Forward declaration */
struct H5F_t;
struct H5F_shared_t;
struct H5FD_vfd_swmr_idx_entry_t;
-/*
+/*
* struct eot_queue_entry_t
- *
+ *
* This is the structure for an entry on the end-of-tick queue (EOT queue) of files
* opened in either VFD SWMR write or VFD SWMR read mode. This queue is maintained
* in increasing end of tick time order.
- * The structure contains all information required to determine whether the end
+ * The structure contains all information required to determine whether the end
* of tick has arrived for the specified file, and to initiate end of tick processing
* if it has.
*
@@ -33,10 +33,10 @@ struct H5FD_vfd_swmr_idx_entry_t;
*
* vfd_swmr_file: Pointer to the instance of H5F_file_t containing the shared
* fields of the associated file that has been opened in VFD SWMR mode
- * NOTE: for the time being use H5F_t instead of H5F_file_t
+ * NOTE: for the time being use H5F_t instead of H5F_file_t
*
- * vfd_swmr_writer: Boolean flag that is set to TRUE if the associated file
- * has been opened in VFD SWMR writer mode, and FALSE if it has been
+ * vfd_swmr_writer: Boolean flag that is set to TRUE if the associated file
+ * has been opened in VFD SWMR writer mode, and FALSE if it has been
* opened in VFD SWMR reader mode.
*
* tick_num: Number of the current tick of the target file.
@@ -49,10 +49,10 @@ struct H5FD_vfd_swmr_idx_entry_t;
* `end_of_tick`.
*/
typedef struct eot_queue_entry {
- hbool_t vfd_swmr_writer;
- uint64_t tick_num;
+ hbool_t vfd_swmr_writer;
+ uint64_t tick_num;
struct timespec end_of_tick;
- struct H5F_t *vfd_swmr_file; /* NOTE: for the time being use H5F_t instead H5F_shared_t */
+ struct H5F_t * vfd_swmr_file; /* NOTE: for the time being use H5F_t instead H5F_shared_t */
TAILQ_ENTRY(eot_queue_entry) link;
} eot_queue_entry_t;
@@ -69,19 +69,18 @@ H5_DLLVAR eot_queue_t eot_queue_g;
H5_DLL herr_t H5F_vfd_swmr_init(struct H5F_t *f, hbool_t file_create);
H5_DLL herr_t H5F_vfd_swmr_close_or_flush(struct H5F_t *f, hbool_t closing);
-H5_DLL herr_t H5F_update_vfd_swmr_metadata_file(struct H5F_t *f,
- uint32_t index_len, struct H5FD_vfd_swmr_idx_entry_t *index);
-H5_DLL herr_t H5F_vfd_swmr_writer__delay_write(struct H5F_shared_t *, uint64_t,
- uint64_t *);
+H5_DLL herr_t H5F_update_vfd_swmr_metadata_file(struct H5F_t *f, uint32_t index_len,
+ struct H5FD_vfd_swmr_idx_entry_t *index);
+H5_DLL herr_t H5F_vfd_swmr_writer__delay_write(struct H5F_shared_t *, uint64_t, uint64_t *);
H5_DLL herr_t H5F_vfd_swmr_writer__prep_for_flush_or_close(struct H5F_t *f);
-herr_t H5F_vfd_swmr_process_eot_queue(hbool_t);
+herr_t H5F_vfd_swmr_process_eot_queue(hbool_t);
H5_DLL herr_t H5F_vfd_swmr_writer_end_of_tick(struct H5F_t *f, hbool_t);
H5_DLL herr_t H5F_vfd_swmr_writer__dump_index(struct H5F_shared_t *);
H5_DLL herr_t H5F_vfd_swmr_reader_end_of_tick(struct H5F_t *f, hbool_t);
H5_DLL herr_t H5F_vfd_swmr_remove_entry_eot(struct H5F_t *f);
H5_DLL herr_t H5F_vfd_swmr_insert_entry_eot(struct H5F_t *f);
-H5_DLL void H5F_vfd_swmr_update_entry_eot(eot_queue_entry_t *);
+H5_DLL void H5F_vfd_swmr_update_entry_eot(eot_queue_entry_t *);
H5_DLL herr_t H5F_dump_eot_queue(void);
#endif /* H5FDvfd_swmr_private_H */