SasView / sasmodels

Package for calculation of small angle scattering models using OpenCL.
BSD 3-Clause "New" or "Revised" License
15 stars 27 forks source link

fix race condition for creating SAS_DLL_PATH, redo of PR #520 #537

Closed bmaranville closed 1 year ago

bmaranville commented 1 year ago

A clean re-implementation of the fix in #520 on the current master (underlying function was changed in another commit)

llimeht commented 1 year ago

Note that there's a similar location which also could be racy in sasmodels/core.py:precompile_dlls L362. The same fix is sufficient. It's also unlikely to get hit, but possibly still feasible when making sasmodels documentation with make -j4 for instance.