diff options
author | Fang Guo <fangguo@ncsa.uiuc.edu> | 2005-08-25 20:49:21 (GMT) |
---|---|---|
committer | Fang Guo <fangguo@ncsa.uiuc.edu> | 2005-08-25 20:49:21 (GMT) |
commit | 5a1bb020a3a0f84883ac11098d801e3f9a84b3ad (patch) | |
tree | 10c5fc0afaab62fe20e6e92abb2b7561b0ef14e3 | |
parent | a4329aaa478d76dc954216b86c74539861aedf38 (diff) | |
download | hdf5-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:
-rw-r--r-- | test/h5test.c | 5 |
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 |