summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_common.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-03-12 17:27:57 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-03-12 17:27:57 (GMT)
commit9e81f0103cdd862140fe66fabadf2107deb93152 (patch)
tree864bc6d18d26a8db3b65b4fc247278b14d978f75 /test/vfd_swmr_common.h
parent9592b80913e775322b0308702b5776ee8d70b7cf (diff)
downloadhdf5-9e81f0103cdd862140fe66fabadf2107deb93152.zip
hdf5-9e81f0103cdd862140fe66fabadf2107deb93152.tar.gz
hdf5-9e81f0103cdd862140fe66fabadf2107deb93152.tar.bz2
Add disable_estack() and restore_estack() for disabling the current error-stack
handling and restoring the previous error-stack handling.
Diffstat (limited to 'test/vfd_swmr_common.h')
-rw-r--r--test/vfd_swmr_common.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/vfd_swmr_common.h b/test/vfd_swmr_common.h
index e3a563f..ac08503 100644
--- a/test/vfd_swmr_common.h
+++ b/test/vfd_swmr_common.h
@@ -43,6 +43,11 @@
/* Typedefs */
/************/
+typedef struct _estack_state {
+ H5E_auto_t efunc;
+ void *edata;
+} estack_state_t;
+
/* Information about a symbol/dataset */
typedef struct {
char *name; /* Dataset name for symbol */
@@ -69,6 +74,9 @@ H5TEST_DLLVAR unsigned symbol_count[NLEVELS];
extern "C" {
#endif
+H5TEST_DLL estack_state_t disable_estack(void);
+H5TEST_DLL void restore_estack(estack_state_t);
+
H5TEST_DLL symbol_info_t * choose_dataset(unsigned *, unsigned *);
H5TEST_DLL hid_t create_symbol_datatype(void);
H5TEST_DLL int generate_name(char *name_buf, unsigned level, unsigned count);
@@ -76,12 +84,12 @@ H5TEST_DLL int generate_symbols(void);
H5TEST_DLL int shutdown_symbols(void);
H5TEST_DLL int print_metadata_retries_info(hid_t fid);
-#ifdef __cplusplus
-}
-#endif
-
H5TEST_DLL void block_signals(sigset_t *);
H5TEST_DLL void restore_signals(sigset_t *);
H5TEST_DLL void await_signal(hid_t);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _SWMR_COMMON_H */