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
a C function or C++ method is said to be re-entrant if it can be called simultaneously from multiple threads, but only if each invocation uses its own data.
All GDAL public C functions and C++ methods are re-entrant, except:
Given the discussion in #419 and the discovery of the underlying behavior of some of the reference counted types, it seems like careful consideration needs to be made when marking GDAL struct wrappers as Send. As my #419 (comment) suggests, I've done a decent amount of digging for SpatialRef specifically and I believe with some (API breaking) changes it can safely be marked as Send. I'd be happy to open a PR with those changes if you'd be interested in introducing them.
Quoting the documentation:
Thus, it should be safe to implement
Send
for all wrapper types. This was already done forDataset
in #99,OwnedLayer
in #238 andError
in #293.The one I'm currently missing is
SpatialRef
, but there are probably more.The text was updated successfully, but these errors were encountered: