Hi Roland,
multithreading, hdf5 and C++ is no problem. It's just the HDF5 C++
library does its own reference-counting in addition to the HDF5-internal
reference counting, it's more than a simple API wrapper. The same seems
to be the case with the HDF5 HL library.
I'm using HDF5 in a multithreading C++ context myself without issues,
but I don't use HDF5 C++ or the HL library.
Cheers,
Werner
On 10.02.2015 12:51, Roland Schwarz wrote:
Hi Dana,
thank you for coming back.
On 04.02.2015 at 20:30 wrote Dana Robinson:
The reason we don't support the higher-level "wrapper" libraries like
C++, Fortran, and the high-level (HL) library is that the global lock
is at the C API call level, not the wrapper level. Some of these
wrapper API calls make multiple C API calls and a context switch
during the wrapper call could cause problems.
I respect your answer, but I do not try to pretend that I am
understanding it. However what puzzles me about the answer is this:
Will I suffer from the same issues when I use C++ to call into the
hdf5 C-library?
I.e. I write my own C++ classes to use hdf5 at the C level. If C++ in
general could not be used with hdf5, that would really be a show stopper!
What should I specifically need to look out for, i.e. what is special
about the hdf library that is not present in other c-libraries making
it problematic for multithreading?
Thank you,
Roland
_______________________________________________
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
--
___________________________________________________________________________
Dr. Werner Benger Visualization Research
Center for Computation & Technology at Louisiana State University (CCT/LSU)
2019 Digital Media Center, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809 Fax.: +1 225 578-5362
_______________________________________________
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