diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2016-11-26 18:11:08 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2016-11-26 18:11:08 (GMT) |
commit | 2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50 (patch) | |
tree | 8601a4262c1c82836046810039d9d7b2e218adf6 /src/H5Fquery.c | |
parent | a8d1aff23568c0f64fa16cfbb37d7741bb922a60 (diff) | |
parent | fff898558e3c828070abe81b4147bd959ed37ccb (diff) | |
download | hdf5-2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50.zip hdf5-2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50.tar.gz hdf5-2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50.tar.bz2 |
Merge branch 'develop' into eoc_valgrind_bugfix
Diffstat (limited to 'src/H5Fquery.c')
-rw-r--r-- | src/H5Fquery.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/H5Fquery.c b/src/H5Fquery.c index 55a50fd..14dd655 100644 --- a/src/H5Fquery.c +++ b/src/H5Fquery.c @@ -322,6 +322,29 @@ H5F_get_nmounts(const H5F_t *f) /*------------------------------------------------------------------------- + * Function: H5F_get_read_attempts + * + * Purpose: Retrieve the file's 'read_attempts' value + * + * Return: '# of read attempts' on success/abort on failure (shouldn't fail) + * + * Programmer: Vaili Choi; Sept 2013 + * + *------------------------------------------------------------------------- + */ +unsigned +H5F_get_read_attempts(const H5F_t *f) +{ + /* Use FUNC_ENTER_NOAPI_NOINIT_NOERR here to avoid performance issues */ + FUNC_ENTER_NOAPI_NOINIT_NOERR + + HDassert(f); + + FUNC_LEAVE_NOAPI(f->shared->read_attempts) +} /* end H5F_get_read_attempts() */ + + +/*------------------------------------------------------------------------- * Function: H5F_get_fcpl * * Purpose: Retrieve the value of a file's FCPL. |