I have C++ code which writes HDF5 files and python code which reads them.
The python code discovers new hdf5 files by polling a directory
periodically. However, I would like the python code to be unable to read
the hdf5 file until the C++ is finished writing. I believe the way to do
this is to make the C++ code write the files in an exclusive write mode
which will make the python read()'s fail until the file is closed by the
To summarize, is there a way to open an HDF5 file using C++ that will give
me exclusive write access to the output file?
Thanks in advance,