Did you build the HDF5 library with thread-safety enabled?

https://www.hdfgroup.org/hdf5-quest.html#tsafe

Yes, the documentation is inconsistent. ☹

G.

From: Hdf-forum [mailto:[email protected]] On Behalf Of 
Isaac Gerg
Sent: Friday, August 26, 2016 5:31 PM
To: [email protected]
Subject: [Hdf-forum] HDF5 -- multithreading support or not?

Hi Folks,

I am a need for a windows application to have two threads read the same hdf5 
file as read-only.  I have searched over months on the internet trying to 
determine if HDF5 can surely handle this case and have found conflicting 
results.

I have built a test in C++, using the hdf5 C API, to determine if the read is 
possible.  The test occasional segfaults on H5Close().  I am trying to 
determine if the segfault is due to HDF5 or my own error.

TL;DR - can HDF5 on windows support having 2 threads read from the same file as 
online documentation seems to be inconsistent.

Thanks in advance,
Isaac
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to