diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2003-07-23 03:13:27 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2003-07-23 03:13:27 (GMT) |
commit | 4b0fa0dbf06a93c7cb7c62a374019543ffa70fe6 (patch) | |
tree | 308f7e073432340fa18ab5faa4a8e234170284e7 /src/H5TS.c | |
parent | 49e9863714840caa2e60d8caa12c6144b5b182f9 (diff) | |
download | hdf5-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |