From 5a1bb020a3a0f84883ac11098d801e3f9a84b3ad Mon Sep 17 00:00:00 2001 From: Fang Guo Date: Thu, 25 Aug 2005 15:49:21 -0500 Subject: [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: --- test/h5test.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v0.12