diff options
author | Quincey Koziol <koziol@lbl.gov> | 2020-12-01 19:20:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 19:20:05 (GMT) |
commit | 3e61010340b7b545f434e3b39dbb56337f8803b5 (patch) | |
tree | db16a6276a41cfa9d6f8c7be0d74f2b02dff038d /src/H5F.c | |
parent | adf7b1d4cf788f25a52619f5d1c957ac5a7c345c (diff) | |
download | hdf5-3e61010340b7b545f434e3b39dbb56337f8803b5.zip hdf5-3e61010340b7b545f434e3b39dbb56337f8803b5.tar.gz hdf5-3e61010340b7b545f434e3b39dbb56337f8803b5.tar.bz2 |
Expand ID dec_ref and close callbacks to allow for asynchronous close operations (#135)
* Expand ID dec_ref and close callbacks to allow for asynchronous close operations.
* Fix typo
* Rename token -> request, remove programmer name
* H5E_ATOM to H5E_ID
Diffstat (limited to 'src/H5F.c')
-rw-r--r-- | src/H5F.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -706,7 +706,9 @@ H5Fclose(hid_t file_id) if (H5I_FILE != H5I_get_type(file_id)) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file ID") - /* Close the file */ + /* Synchronously decrement reference count on ID. + * When it reaches zero the file will be closed. + */ if (H5I_dec_app_ref(file_id) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, FAIL, "decrementing file ID failed") |