HDF5: Minor fixes to supress errors and use common mutex for reading and writing

This commit is contained in:
2026-01-29 20:45:25 +01:00
parent a41478c3cd
commit a6a8d35a7e
3 changed files with 8 additions and 6 deletions
+4 -1
View File
@@ -869,7 +869,10 @@ std::string HDF5Object::GetString(const std::string &name, const std::string &de
}
bool HDF5Object::Exists(const std::string &name) const {
return H5Lexists(GetID(), name.c_str(), H5P_DEFAULT) > 0;
H5E_BEGIN_TRY {
return H5Lexists(GetID(), name.c_str(), H5P_DEFAULT) > 0;
} H5E_END_TRY;
return false;
}
herr_t func(hid_t group, const char *name, const H5L_info2_t *info, void *op_data) {