summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorFang Guo <fangguo@ncsa.uiuc.edu>2005-08-25 20:49:21 (GMT)
committerFang Guo <fangguo@ncsa.uiuc.edu>2005-08-25 20:49:21 (GMT)
commit5a1bb020a3a0f84883ac11098d801e3f9a84b3ad (patch)
tree10c5fc0afaab62fe20e6e92abb2b7561b0ef14e3 /test/h5test.c
parenta4329aaa478d76dc954216b86c74539861aedf38 (diff)
downloadhdf5-5a1bb020a3a0f84883ac11098d801e3f9a84b3ad.zip
hdf5-5a1bb020a3a0f84883ac11098d801e3f9a84b3ad.tar.gz
hdf5-5a1bb020a3a0f84883ac11098d801e3f9a84b3ad.tar.bz2
[svn-r11299] Purpose:
Improvement for Windows Description: thread number can not be printed out on windows. Add a special macro for WIN32 to print out some helpful messages Solution: Platforms tested: Heping and MSVS 6.0 on Windows XP Misc. update:
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index b1a6d2f..027cb82 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -588,7 +588,12 @@ h5_show_hostname(void)
printf("thread 0.");
}
#elif defined(H5_HAVE_THREADSAFE)
+#ifdef WIN32
+ printf("some thread: no way to know the thread number from pthread on windows.");
+#else
printf("thread %d.", (int)pthread_self());
+#endif
+
#else
printf("thread 0.");
#endif