diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-08-26 17:05:57 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-08-26 17:05:57 (GMT) |
commit | 606c16e11126bd908e673abefd4f0b7e91562d7f (patch) | |
tree | b00d04aa9badff7a5c747a846b11c0e354a40596 /test/ttsafe.h | |
parent | 6635d4c003caf15aadc16b0453d71ca1b0e8ca1f (diff) | |
download | hdf5-606c16e11126bd908e673abefd4f0b7e91562d7f.zip hdf5-606c16e11126bd908e673abefd4f0b7e91562d7f.tar.gz hdf5-606c16e11126bd908e673abefd4f0b7e91562d7f.tar.bz2 |
[svn-r27587] Added a new API call (H5is_library_threadsafe) to the library. This call can
be used to determine at runtime if the library was built with thread-safety.
Fixes HDFFV-9496
Tested on: h5committest
Diffstat (limited to 'test/ttsafe.h')
-rw-r--r-- | test/ttsafe.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/ttsafe.h b/test/ttsafe.h index b4826fc..f2e9e86 100644 --- a/test/ttsafe.h +++ b/test/ttsafe.h @@ -20,8 +20,6 @@ #ifndef TTSAFE_H #define TTSAFE_H -#include <string.h> - /* * Include required headers. This file tests internal library functions, * so we include the private headers here. @@ -31,16 +29,13 @@ #include "H5Eprivate.h" #include "testhdf5.h" -#ifdef H5_HAVE_THREADSAFE -/* Include pthread library for threadsafe tests */ -#ifdef H5_HAVE_PTHREAD_H -#include <pthread.h> -#endif /* H5_HAVE_PTHREAD_H */ /* Prototypes for the support routines */ extern char* gen_name(int); /* Prototypes for the test routines */ +void tts_is_threadsafe(void); +#ifdef H5_HAVE_THREADSAFE void tts_dcreate(void); void tts_error(void); void tts_cancel(void); @@ -54,3 +49,4 @@ void cleanup_acreate(void); #endif /* H5_HAVE_THREADSAFE */ #endif /* TTSAFE_H */ + |