otherwise returns a negative value.
Since: HDF5 1.14.0
herr_t H5atclose(H5_atclose_func_t func, void * ctx)Registers a callback for the library to invoke when it's closing.
H5atclose() registers a callback that the HDF5 library will invoke when closing. The full capabilities of the HDF5 library are available to callbacks invoked through this mechanism, and library shutdown will only begin in earnest when all callbacks have been invoked and have returned.
Registered callbacks are invoked in LIFO order (last registered, first invoked). Registering the same callback multiple times will result in multiple invocations of the callback.
If the HDF5 library is initialized and closed more than once, the callback must be registered within each open/close cycle.
func | The function pointer to invoke |
ctx | Context to pass to func when invoked |
otherwise returns a negative value.
Since: HDF5 1.14.0