diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-05-19 14:51:50 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-05-19 14:51:50 (GMT) |
commit | d894ed6d0dd5e750566d783f399213c84b40345e (patch) | |
tree | 46c5c8b417de7d7956b7e161a3a93bc5db1fad42 /src/H5E.c | |
parent | c0d424e947ed9f996f66b32dab8e47cda201d1fa (diff) | |
download | hdf5-d894ed6d0dd5e750566d783f399213c84b40345e.zip hdf5-d894ed6d0dd5e750566d783f399213c84b40345e.tar.gz hdf5-d894ed6d0dd5e750566d783f399213c84b40345e.tar.bz2 |
[svn-r2276] Modifed thread-safety code to more closely align with rest of HDF5 coding
standards.
Diffstat (limited to 'src/H5E.c')
-rw-r--r-- | src/H5E.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -197,12 +197,12 @@ void *H5E_auto_data_g = NULL; H5E_t *H5E_get_stack() { H5E_t *estack; - if (estack = pthread_getspecific(H5_errstk_key_g)) { + if ((estack = pthread_getspecific(H5TS_errstk_key_g))!=NULL) { return estack; } else { /* no associated value with current thread - create one */ estack = (H5E_t *)malloc(sizeof(H5E_t)); - pthread_setspecific(H5_errstk_key_g, (void *)estack); + pthread_setspecific(H5TS_errstk_key_g, (void *)estack); return estack; } } @@ -359,7 +359,7 @@ H5Eprint(FILE *stream) if (!stream) stream = stderr; #ifdef H5_HAVE_THREADSAFE fprintf (stream, "HDF5-DIAG: Error detected in thread %d." - ,pthread_self()); + ,(int)pthread_self()); #else fprintf (stream, "HDF5-DIAG: Error detected in thread 0."); #endif |