summaryrefslogtreecommitdiffstats
path: root/src/H5Opkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-06-04 15:31:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-06-04 15:31:50 (GMT)
commitf4f0c14939c625594989e714cbe74dad46afbee3 (patch)
tree0626fed6469476a49eee9fc42aa34aac3926e36d /src/H5Opkg.h
parentaf7d1c4cd4e088d7e068cc2374983019eb262152 (diff)
downloadhdf5-f4f0c14939c625594989e714cbe74dad46afbee3.zip
hdf5-f4f0c14939c625594989e714cbe74dad46afbee3.tar.gz
hdf5-f4f0c14939c625594989e714cbe74dad46afbee3.tar.bz2
[svn-r17004] Description:
Bring r17002 from trunk to 1.8 branch: Rename H5O_protect/H5O_unprotect to be H5O_pin/H5O_unpin, since that's what that are actually doing. Add counter of the number of times the object header is pinned, to allow H5O_pin/H5O_unpin to be called reentrantly. Tested on: Mac OS X/32 10.5.7 (amazon) w/debug & prod h5committest already run for trunk version of change
Diffstat (limited to 'src/H5Opkg.h')
-rw-r--r--src/H5Opkg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5Opkg.h b/src/H5Opkg.h
index 9981461..8569119 100644
--- a/src/H5Opkg.h
+++ b/src/H5Opkg.h
@@ -266,6 +266,11 @@ struct H5O_t {
/* File-specific information (not stored) */
size_t sizeof_size; /* Size of file sizes */
size_t sizeof_addr; /* Size of file addresses */
+
+ /* Misc. information (not stored) */
+ unsigned npins; /* Number of times the header is pinned */
+
+ /* Debugging information (not stored) */
#ifdef H5O_ENABLE_BAD_MESG_COUNT
hbool_t store_bad_mesg_count; /* Flag to indicate that a bad message count should be stored */
/* (This is to simulate a bug in earlier