summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-07-20 21:08:31 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-07-20 21:08:31 (GMT)
commitaecefbb2f5737890a27dcfd2ef20276d2ff88b2a (patch)
tree500e2f4a267f98e52d5a13e92ce84fa69056ef73
parenta3aedfff18d9e0f75f53a9b55ed8112bc991a26b (diff)
downloadhdf5-aecefbb2f5737890a27dcfd2ef20276d2ff88b2a.zip
hdf5-aecefbb2f5737890a27dcfd2ef20276d2ff88b2a.tar.gz
hdf5-aecefbb2f5737890a27dcfd2ef20276d2ff88b2a.tar.bz2
Corrected missing H5CS thread-safety change.
-rw-r--r--src/H5CS.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/H5CS.c b/src/H5CS.c
index 0a3dcce..3fccce4 100644
--- a/src/H5CS.c
+++ b/src/H5CS.c
@@ -145,11 +145,7 @@ H5CS_print_stack(const H5CS_t *fstack, FILE *stream)
HDfprintf(stream, "HDF5-DIAG: Function stack from %s ", H5_lib_vers_info_g);
/* try show the process or thread id in multiple processes cases*/
-#ifdef H5_HAVE_THREADSAFE
- HDfprintf(stream, "thread %lu.", HDpthread_self_ulong());
-#else /* H5_HAVE_THREADSAFE */
- HDfprintf(stream, "thread 0.");
-#endif /* H5_HAVE_THREADSAFE */
+ HDfprintf(stream, "thread %" PRIu64 ".", H5TS_thread_id());
if(fstack && fstack->nused>0)
HDfprintf(stream, " Back trace follows.");
HDfputc('\n', stream);