summaryrefslogtreecommitdiffstats
path: root/src/H5E.c
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2010-09-10 16:15:57 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2010-09-10 16:15:57 (GMT)
commit2d9a70085c38816df68a1b2cfce59c05853e3c4a (patch)
tree4fd2b91f1dcf8291ab6654caa8a68eef46aff824 /src/H5E.c
parenta8646632e8f76b729c141d0570700bae2fa884e9 (diff)
downloadhdf5-2d9a70085c38816df68a1b2cfce59c05853e3c4a.zip
hdf5-2d9a70085c38816df68a1b2cfce59c05853e3c4a.tar.gz
hdf5-2d9a70085c38816df68a1b2cfce59c05853e3c4a.tar.bz2
[svn-r19368] Purpose:
Add windows threads support to HDF5. Description: Added calls to the windows threads library to the H5TS layer, and wrapped most calls to either pthreads or windows threads library with portable H5TS-style defines. Modified tests to use portable function definitions as well. This can be configured via CMake with the HDF5_ENABLE_THREADSAFE option, and should work on windows vista and later operating systems. Tested: h5committest, plus threadsafe with pthreads on jam and amani, and tested on a Windows Vista VM with threadsafe using windows threads.
Diffstat (limited to 'src/H5E.c')
-rw-r--r--src/H5E.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5E.c b/src/H5E.c
index 8f89e99..bc2e0e6 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -336,7 +336,7 @@ H5E_get_stack(void)
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5E_get_stack)
- estack = (H5E_t *)pthread_getspecific(H5TS_errstk_key_g);
+ estack = (H5E_t *)H5TS_get_thread_local_value(H5TS_errstk_key_g);
if(!estack) {
/* no associated value with current thread - create one */
@@ -351,7 +351,7 @@ H5E_get_stack(void)
* released by the "key destructor" set up in the H5TS
* routines. See calls to pthread_key_create() in H5TS.c -QAK)
*/
- pthread_setspecific(H5TS_errstk_key_g, (void *)estack);
+ H5TS_set_thread_local_value(H5TS_errstk_key_g, (void *)estack);
} /* end if */
/* Set return value */