summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2005-07-19 21:56:15 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2005-07-19 21:56:15 (GMT)
commit37e0b58f862cc34cc1fff2288b9bc594d88a1b31 (patch)
tree16a5018337c36f22011657cba2f4fa5dab49fcda
parentbd92e1e2a0ad218875243ef6a8476b8f9b81bd0c (diff)
downloadhdf5-37e0b58f862cc34cc1fff2288b9bc594d88a1b31.zip
hdf5-37e0b58f862cc34cc1fff2288b9bc594d88a1b31.tar.gz
hdf5-37e0b58f862cc34cc1fff2288b9bc594d88a1b31.tar.bz2
[svn-r11088] Purpose:
support thread-safe on windows Description: pthread on windows won't return a numeric value from pthread_safe. An error message applying on linux won't apply on windows, Print some other message. Solution: Platforms tested: windows xp, too minor to test at other platforms. Misc. update:
-rw-r--r--src/H5E.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5E.c b/src/H5E.c
index 73843fc..724ea0d 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -2216,7 +2216,11 @@ H5E_walk_cb(unsigned n, const H5E_error_t *err_desc, void *client_data)
fprintf (stream, "thread 0");
}
#elif defined(H5_HAVE_THREADSAFE)
+#ifdef WIN32
+ fprintf (stream, "some thread: no way to know the thread number from pthread on windows");
+#else
fprintf (stream, "thread %lu", (unsigned long)pthread_self());
+#endif
#else
fprintf (stream, "thread 0");
#endif