summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_dcreate.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-02-10 15:38:52 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-02-10 15:38:52 (GMT)
commit738661ab9f409b8d961ba1402d6c4dd5f99ecb43 (patch)
tree01f97a9d10bc3bbe519366197b475efdae2cc8d5 /test/ttsafe_dcreate.c
parent168d67dbd20923feef30fb76c6b569ef2e5add4a (diff)
downloadhdf5-738661ab9f409b8d961ba1402d6c4dd5f99ecb43.zip
hdf5-738661ab9f409b8d961ba1402d6c4dd5f99ecb43.tar.gz
hdf5-738661ab9f409b8d961ba1402d6c4dd5f99ecb43.tar.bz2
[svn-r6386] Purpose:
Bug fix Description: The "system scope" for threads isn't supported on all platforms. Solution: Add detection of this feature to the configure script and check for "H5_HAVE_SYSTEM_SCOPE_THREADS" in the appropriate places. Platforms tested: modi4 w/threadsafe
Diffstat (limited to 'test/ttsafe_dcreate.c')
-rw-r--r--test/ttsafe_dcreate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/ttsafe_dcreate.c b/test/ttsafe_dcreate.c
index d85dbe7..9a66609 100644
--- a/test/ttsafe_dcreate.c
+++ b/test/ttsafe_dcreate.c
@@ -87,13 +87,10 @@ void tts_dcreate(void)
/* set pthread attribute to perform global scheduling */
ret=pthread_attr_init(&attribute);
assert(ret==0);
+#ifdef H5_HAVE_SYSTEM_SCOPE_THREADS
ret=pthread_attr_setscope(&attribute, PTHREAD_SCOPE_SYSTEM);
-/* Don't check return value on FreeBSD, since PTHREAD_SCOPE_SYSTEM is not
- * currently supported in v4.7
- */
-#ifndef __FreeBSD__
assert(ret==0);
-#endif /* __FreeBSD__ */
+#endif /* H5_HAVE_SYSTEM_SCOPE_THREADS */
/*
* Create a hdf5 file using H5F_ACC_TRUNC access, default file