summaryrefslogtreecommitdiffstats
path: root/src/H5TSprivate.h
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-06-06 20:50:18 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-06-06 20:50:18 (GMT)
commit90bc20edb598f4cb787b03d20a7ff6c2b9466ab0 (patch)
treed1466d89a2f433895752e22646e915e68980522f /src/H5TSprivate.h
parent8cb2d8c6af82b128d06e56f430562d80764b00ec (diff)
downloadhdf5-90bc20edb598f4cb787b03d20a7ff6c2b9466ab0.zip
hdf5-90bc20edb598f4cb787b03d20a7ff6c2b9466ab0.tar.gz
hdf5-90bc20edb598f4cb787b03d20a7ff6c2b9466ab0.tar.bz2
[svn-r2348] The way the pthread_t object was being initialized wasn't correct for all
platforms. Also, it's not entirely certain that a value of 0 isn't a valid thread ID. So, I changed the pthread_t object to be a pointer to pthread_t with the appropriate memory management this entails. Part of the validity of this approach rests on the fact that one can assign a variable which is a structure to another variable of the same type and all fields within will be copied appropriately...See! C *does* do some things correctly :-).
Diffstat (limited to 'src/H5TSprivate.h')
-rw-r--r--src/H5TSprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5TSprivate.h b/src/H5TSprivate.h
index 525450c..2d88637 100644
--- a/src/H5TSprivate.h
+++ b/src/H5TSprivate.h
@@ -25,7 +25,7 @@
/* Library level data structures */
typedef struct H5TS_mutex_struct {
- pthread_t owner_thread; /* current lock owner */
+ pthread_t *owner_thread; /* current lock owner */
pthread_mutex_t atomic_lock; /* lock for atomicity of new mechanism */
pthread_cond_t cond_var; /* condition variable */
unsigned int lock_count;