summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5TS.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5TS.c b/src/H5TS.c
index 480bc2d..1d7042a 100644
--- a/src/H5TS.c
+++ b/src/H5TS.c
@@ -127,6 +127,12 @@ H5TS_pthread_first_thread_init(void)
{
H5_g.H5_libinit_g = FALSE;
+#ifdef _WIN32
+# ifdef PTW32_STATIC_LIB
+ pthread_win32_process_attach_np();
+# endif
+#endif
+
/* initialize global API mutex lock */
pthread_mutex_init(&H5_g.init_lock.atomic_lock, NULL);
pthread_cond_init(&H5_g.init_lock.cond_var, NULL);