JuliaIO / HDF5.jl

Save and load data in the HDF5 file format from Julia
https://juliaio.github.io/HDF5.jl
MIT License
380 stars 138 forks source link

Examine error handling per thread #1143

Open mkitti opened 4 months ago

mkitti commented 4 months ago

Apparently, H5Eset_auto is only effective on a per-thread basis.

https://forum.hdfgroup.org/t/h5eset-auto-for-all-threads/1501/2

H5Eset_auto is called by us here in HDF5.API.__init__() https://github.com/JuliaIO/HDF5.jl/blob/91ef2841dcc5ddd52ef3094120b8921e0c1c5749/src/api/api.jl#L92C1-L93C1

We could simply iterate through existing normal threads and set this for all threads.

For interactive threads, we might keep some kind of global structure tracking threadid and whether this has been triggered.