summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 4f67326..518b503 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1665,13 +1665,9 @@ typedef struct H5_api_struct {
/* Macro for first thread initialization */
#ifdef H5_HAVE_WIN_THREADS
-#define H5_FIRST_THREAD_INIT \
- if (!H5_INIT_GLOBAL) \
- InitOnceExecuteOnce(&H5TS_first_init_g, H5TS_win32_first_thread_init, NULL, NULL);
+#define H5_FIRST_THREAD_INIT InitOnceExecuteOnce(&H5TS_first_init_g, H5TS_win32_first_thread_init, NULL, NULL);
#else
-#define H5_FIRST_THREAD_INIT \
- if (!H5_INIT_GLOBAL) \
- pthread_once(&H5TS_first_init_g, H5TS_first_thread_init);
+#define H5_FIRST_THREAD_INIT pthread_once(&H5TS_first_init_g, H5TS_pthread_first_thread_init);
#endif
/* Macros for threadsafe HDF-5 Phase I locks */