summaryrefslogtreecommitdiffstats
path: root/src/H5Apublic.h
diff options
context:
space:
mode:
authormattjala <124107509+mattjala@users.noreply.github.com>2023-05-15 03:09:58 (GMT)
committerGitHub <noreply@github.com>2023-05-15 03:09:58 (GMT)
commit17750ea9c280784c90456ef81c0f13704483a5fa (patch)
tree4922d8edfd80edca7b17749c021a1b2c69adf92a /src/H5Apublic.h
parent364145f144cb68a5635ad9f7dad0e4210e3d513a (diff)
downloadhdf5-17750ea9c280784c90456ef81c0f13704483a5fa.zip
hdf5-17750ea9c280784c90456ef81c0f13704483a5fa.tar.gz
hdf5-17750ea9c280784c90456ef81c0f13704483a5fa.tar.bz2
Warn about changing collections during iteration (#2950)
Resolves #92
Diffstat (limited to 'src/H5Apublic.h')
-rw-r--r--src/H5Apublic.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/H5Apublic.h b/src/H5Apublic.h
index de6851d..6e7ca7e 100644
--- a/src/H5Apublic.h
+++ b/src/H5Apublic.h
@@ -664,6 +664,9 @@ H5_DLL hid_t H5Aget_type(hid_t attr_id);
*
* \note This function is also available through the H5Aiterate() macro.
*
+ * \warning Adding or removing attributes to the object during iteration
+ * will lead to undefined behavior.
+ *
* \since 1.8.0
*
*/
@@ -721,6 +724,9 @@ H5_DLL herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t ord
* information regarding the properties of links required to access
* the object, \p obj_name.
*
+ * \warning Adding or removing attributes to the object during iteration
+ * will lead to undefined behavior.
+ *
* \since 1.8.0
*
*/
@@ -1188,6 +1194,9 @@ H5_DLL int H5Aget_num_attrs(hid_t loc_id);
* \p op, is returned in \p idx. If \p idx is the null pointer,
* then all attributes are processed.
*
+ * \warning Adding or removing attributes to the object during iteration
+ * will lead to undefined behavior.
+ *
* \version 1.8.0 The function \p H5Aiterate was renamed to H5Aiterate1()
* and deprecated in this release.
* \since 1.0.0