summaryrefslogtreecommitdiffstats
path: root/src/H5TSprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-11-16 01:01:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-11-16 01:01:37 (GMT)
commit671187fd2b53c916f444e849a2fd57bac06552f8 (patch)
treea1a723b81dda3c967a597a9d7477806e4fcfa706 /src/H5TSprivate.h
parente70783203ab603627147c565d0fe08ddbe103981 (diff)
downloadhdf5-671187fd2b53c916f444e849a2fd57bac06552f8.zip
hdf5-671187fd2b53c916f444e849a2fd57bac06552f8.tar.gz
hdf5-671187fd2b53c916f444e849a2fd57bac06552f8.tar.bz2
[svn-r11733] Purpose:
Code cleanup Description: Added some comments about the thread-specific memory for the error and function stacks. Changed H5close() to not use the function stack (since it causes it to be re-enabled after shutting it down) Changed thread-safe semaphore code to not use dynamicly allocated memory. Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4 Too minor to require h5committest
Diffstat (limited to 'src/H5TSprivate.h')
-rw-r--r--src/H5TSprivate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5TSprivate.h b/src/H5TSprivate.h
index f79e666..3ab08eb 100644
--- a/src/H5TSprivate.h
+++ b/src/H5TSprivate.h
@@ -35,7 +35,8 @@
/* Library level data structures */
typedef struct H5TS_mutex_struct {
- pthread_t *owner_thread; /* current lock owner */
+ pthread_t owner_thread; /* current lock owner */
+ unsigned owner_valid; /* if current lock owner info is valid */
pthread_mutex_t atomic_lock; /* lock for atomicity of new mechanism */
pthread_cond_t cond_var; /* condition variable */
unsigned int lock_count;