[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:
This commit is contained in:
Fang Guo 2005-08-25 15:49:21 -05:00
parent a4329aaa47
commit 5a1bb020a3

View File

@ -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