mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
133 stars 26 forks source link

HDF5 on Windows is not thread-safe #17

Open mmomtchev opened 2 years ago

mmomtchev commented 2 years ago

The locking mechanism used by hdf5 on Windows is available only when running in a DLL which is not the case for Node.js addons.

The GDAL NetCDF driver implements its own locking so it is not affected.

When using raw HDF5 files on Windows, it is up to the user to ensure that his application never makes multiple simultaneous calls to the HDF5 library, or random crashes are possible.

There is no simple solution to this.