summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-09-01 17:27:27 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-09-01 17:27:27 (GMT)
commitab299db44b80aaffbcdfe4eb692d061ddec9ff3f (patch)
tree0d6a70c2348fdb9329c3f6ce98162dda969e260c
parentf589bb679f2650267f4c1b59fa4146a2e63aa5af (diff)
downloadhdf5-ab299db44b80aaffbcdfe4eb692d061ddec9ff3f.zip
hdf5-ab299db44b80aaffbcdfe4eb692d061ddec9ff3f.tar.gz
hdf5-ab299db44b80aaffbcdfe4eb692d061ddec9ff3f.tar.bz2
[svn-r21353] HDFFV-4018: static function for windows and pthreads
-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);