mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[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:
parent
a4329aaa47
commit
5a1bb020a3
@ -588,7 +588,12 @@ h5_show_hostname(void)
|
|||||||
printf("thread 0.");
|
printf("thread 0.");
|
||||||
}
|
}
|
||||||
#elif defined(H5_HAVE_THREADSAFE)
|
#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());
|
printf("thread %d.", (int)pthread_self());
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
printf("thread 0.");
|
printf("thread 0.");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user