summaryrefslogtreecommitdiffstats
path: root/src/H5Fquery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Fquery.c')
-rw-r--r--src/H5Fquery.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/H5Fquery.c b/src/H5Fquery.c
index 7fcd0f1..2ffe766 100644
--- a/src/H5Fquery.c
+++ b/src/H5Fquery.c
@@ -860,7 +860,8 @@ H5F_get_fc_degree(const H5F_t *f)
/*-------------------------------------------------------------------------
* Function: H5F_get_evict_on_close
*
- * Purpose: Retrieve the 'file close degree' for the file.
+ * Purpose: Checks if evict-on-close is desired for objects in the
+ * file.
*
* Return: Success: Flag indicating whether the evict-on-close
* property was set for the file.
@@ -885,6 +886,31 @@ H5F_get_evict_on_close(const H5F_t *f)
/*-------------------------------------------------------------------------
+ * Function: H5F_get_closing
+ *
+ * Purpose: Checks if the file is in the process of being closed.
+ *
+ * Return: Success: Flag indicating whether the file is closing.
+ * Failure: (can't happen)
+ *
+ * Programmer: Dana Robinson
+ * Fall 2016
+ *
+ *-------------------------------------------------------------------------
+ */
+hbool_t
+H5F_get_closing(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->closing)
+} /* end H5F_get_closing() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5F_store_msg_crt_idx
*
* Purpose: Retrieve the 'store message creation index' flag for the file.