You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So Julia is getting a new threading model and I think packages are supposed to prepare becoming thread-safe. To my best knowledge, the NetCDF C library is not thread-safe and should not be called from several threads simultaneously, although there has been some discussion on the topic. https://www.unidata.ucar.edu/blogs/developer/entry/implementing-thread-safe-access-to
So I guess one would have to make sure that calls to any netcdf c function would be exclusive among threads by using locks from the Julia side. I think this will probably affect a lot of other wrapper packages around non-thread-safe libraries, so it might make sense to wait a bit and see solutions popping up. Just wanted to bring up the issue now, so people might reference existing solutions.
The text was updated successfully, but these errors were encountered:
So Julia is getting a new threading model and I think packages are supposed to prepare becoming thread-safe. To my best knowledge, the NetCDF C library is not thread-safe and should not be called from several threads simultaneously, although there has been some discussion on the topic. https://www.unidata.ucar.edu/blogs/developer/entry/implementing-thread-safe-access-to
So I guess one would have to make sure that calls to any netcdf c function would be exclusive among threads by using locks from the Julia side. I think this will probably affect a lot of other wrapper packages around non-thread-safe libraries, so it might make sense to wait a bit and see solutions popping up. Just wanted to bring up the issue now, so people might reference existing solutions.
The text was updated successfully, but these errors were encountered: