From ab299db44b80aaffbcdfe4eb692d061ddec9ff3f Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 1 Sep 2011 12:27:27 -0500 Subject: [svn-r21353] HDFFV-4018: static function for windows and pthreads --- src/H5TS.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v0.12