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-02-03 17:59:14 (GMT)
commit986c7451a03aa8d54ce3b57ffd2e394665d360cc (patch)
treef026b4f18a17976c4f2072f5082bfa2654547b06 /test/h5test.c
parent0147d2493eed235ba31077a6da38608ce2fe152a (diff)
downloadhdf5-986c7451a03aa8d54ce3b57ffd2e394665d360cc.zip
hdf5-986c7451a03aa8d54ce3b57ffd2e394665d360cc.tar.gz
hdf5-986c7451a03aa8d54ce3b57ffd2e394665d360cc.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 78d0077..53a4fdb 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -1172,10 +1172,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