diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2005-07-19 21:56:15 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2005-07-19 21:56:15 (GMT) |
commit | 37e0b58f862cc34cc1fff2288b9bc594d88a1b31 (patch) | |
tree | 16a5018337c36f22011657cba2f4fa5dab49fcda /src/H5E.c | |
parent | bd92e1e2a0ad218875243ef6a8476b8f9b81bd0c (diff) | |
download | hdf5-37e0b58f862cc34cc1fff2288b9bc594d88a1b31.zip hdf5-37e0b58f862cc34cc1fff2288b9bc594d88a1b31.tar.gz hdf5-37e0b58f862cc34cc1fff2288b9bc594d88a1b31.tar.bz2 |
[svn-r11088] Purpose:
support thread-safe on windows
Description:
pthread on windows won't return a numeric value from pthread_safe.
An error message applying on linux won't apply on windows,
Print some other message.
Solution:
Platforms tested:
windows xp, too minor to test at other platforms.
Misc. update:
Diffstat (limited to 'src/H5E.c')
-rw-r--r-- | src/H5E.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2216,7 +2216,11 @@ H5E_walk_cb(unsigned n, const H5E_error_t *err_desc, void *client_data) fprintf (stream, "thread 0"); } #elif defined(H5_HAVE_THREADSAFE) +#ifdef WIN32 + fprintf (stream, "some thread: no way to know the thread number from pthread on windows"); +#else fprintf (stream, "thread %lu", (unsigned long)pthread_self()); +#endif #else fprintf (stream, "thread 0"); #endif |