diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-03 22:33:28 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-11 20:32:40 (GMT) |
commit | c0fa07fd9fc1c4b0aab116c6c278142384a440b9 (patch) | |
tree | 283344727769a5e31c0787c94e349e767c20bea9 | |
parent | c97981da3620cff7f789516dd9dff5ffde86d6d8 (diff) | |
download | hdf5-c0fa07fd9fc1c4b0aab116c6c278142384a440b9.zip hdf5-c0fa07fd9fc1c4b0aab116c6c278142384a440b9.tar.gz hdf5-c0fa07fd9fc1c4b0aab116c6c278142384a440b9.tar.bz2 |
src/H5Eint.c: #include H5TSprivate.h for H5TS_thread_id() definitions.
test/thread_id.c: move threads_failure() inside #ifdefs.
-rw-r--r-- | src/H5Eint.c | 1 | ||||
-rw-r--r-- | test/thread_id.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Eint.c b/src/H5Eint.c index 7e144c8..735f0f2 100644 --- a/src/H5Eint.c +++ b/src/H5Eint.c @@ -37,6 +37,7 @@ #include "H5Epkg.h" /* Error handling */ #include "H5Iprivate.h" /* IDs */ #include "H5MMprivate.h" /* Memory management */ +#include "H5TSprivate.h" /* Thread stuff */ /****************/ diff --git a/test/thread_id.c b/test/thread_id.c index 75ffe17..8f6e2d5 100644 --- a/test/thread_id.c +++ b/test/thread_id.c @@ -26,13 +26,13 @@ */ #include "testhdf5.h" +#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS) + #define threads_failure(_call, _result) do { \ errx(EXIT_FAILURE, "%s.%d: " #_call ": %s", __func__, \ __LINE__, strerror(_result)); \ } while (false) -#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS) - #define NTHREADS 5 static volatile bool failed = false; |