diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-03 17:59:14 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2020-05-06 20:37:14 (GMT) |
commit | 763d7a778e7b08a0f6bffcd6c471dbcd02147141 (patch) | |
tree | a772aef0ea894056bb4e0210f3a28588011edcb5 /test/h5test.c | |
parent | 25f30e7d63ac3c567b38233a2d4b6d3472754754 (diff) | |
download | hdf5-763d7a778e7b08a0f6bffcd6c471dbcd02147141.zip hdf5-763d7a778e7b08a0f6bffcd6c471dbcd02147141.tar.gz hdf5-763d7a778e7b08a0f6bffcd6c471dbcd02147141.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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/h5test.c b/test/h5test.c index be974fe..3f18a7f 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -1164,10 +1164,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 |