summaryrefslogtreecommitdiffstats
path: root/src/H5TS.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2003-07-23 03:13:27 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2003-07-23 03:13:27 (GMT)
commit4b0fa0dbf06a93c7cb7c62a374019543ffa70fe6 (patch)
tree308f7e073432340fa18ab5faa4a8e234170284e7 /src/H5TS.c
parent49e9863714840caa2e60d8caa12c6144b5b182f9 (diff)
downloadhdf5-4b0fa0dbf06a93c7cb7c62a374019543ffa70fe6.zip
hdf5-4b0fa0dbf06a93c7cb7c62a374019543ffa70fe6.tar.gz
hdf5-4b0fa0dbf06a93c7cb7c62a374019543ffa70fe6.tar.bz2
[svn-r7256] Purpose: gradual checkin for error api
Platforms tested: RH 8(simple checkin)
Diffstat (limited to 'src/H5TS.c')
-rw-r--r--src/H5TS.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5TS.c b/src/H5TS.c
index 943e21b..e57c5e6 100644
--- a/src/H5TS.c
+++ b/src/H5TS.c
@@ -32,6 +32,9 @@ typedef struct H5TS_cancel_struct {
/* Global variable definitions */
pthread_once_t H5TS_first_init_g = PTHREAD_ONCE_INIT;
pthread_key_t H5TS_errstk_key_g;
+#ifndef NEW_ERR
+pthread_key_t H5TS_errstk_key_g_new;
+#endif /* NEW_ERR */
pthread_key_t H5TS_funcstk_key_g;
pthread_key_t H5TS_cancel_key_g;
hbool_t H5TS_allow_concurrent_g = FALSE; /* concurrent APIs override this */
@@ -107,7 +110,10 @@ H5TS_first_thread_init(void)
/* initialize key for thread-specific error stacks */
pthread_key_create(&H5TS_errstk_key_g, H5TS_key_destructor);
-
+#ifndef NEW_ERR
+ /* initialize key for thread-specific error stacks */
+ pthread_key_create(&H5TS_errstk_key_g_new, H5TS_key_destructor);
+#endif /* NEW_ERR */
/* initialize key for thread-specific function stacks */
pthread_key_create(&H5TS_funcstk_key_g, H5TS_key_destructor);