summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-03 17:59:14 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:54 (GMT)
commit06dfd6025d0798d53f74f40763a9d8effdf3c7de (patch)
tree1ef4300deea56fac750ce7634e9ef6cc7296fd2f /test/h5test.c
parentecdaf09c11521dc87c38e840a4345284b547e7b1 (diff)
downloadhdf5-06dfd6025d0798d53f74f40763a9d8effdf3c7de.zip
hdf5-06dfd6025d0798d53f74f40763a9d8effdf3c7de.tar.gz
hdf5-06dfd6025d0798d53f74f40763a9d8effdf3c7de.tar.bz2
Replace pthread_self_ulong() with H5TS_thread_id(). The POSIX Threads
implementation ought to be portable to any system that has POSIX Threads. On Windows, I use the same API call as before.
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 03b2753..037e114 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -1183,10 +1183,8 @@ h5_show_hostname(void)
else
HDprintf("thread 0.");
}
-#elif defined(H5_HAVE_THREADSAFE)
- HDprintf("thread %lu.", HDpthread_self_ulong());
#else
- HDprintf("thread 0.");
+ HDprintf("thread %lu.", H5TS_thread_id());
#endif
#ifdef H5_HAVE_WIN32_API