From 37e0b58f862cc34cc1fff2288b9bc594d88a1b31 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Tue, 19 Jul 2005 16:56:15 -0500 Subject: [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: --- src/H5E.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/H5E.c b/src/H5E.c index 73843fc..724ea0d 100644 --- a/src/H5E.c +++ b/src/H5E.c @@ -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 -- cgit v0.12