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
Libspatialindex is not threadsafe, so all operations (even queries as I understand) need to be done under a lock.
The way you would do this is by adding a lock field to the struct, providing it a ReentrantLock on construction, and then calling the C-API only under a
lock(index.lock)
try# call CAPI herefinallyunlock(index.lock)
end
The text was updated successfully, but these errors were encountered:
Libspatialindex is not threadsafe, so all operations (even queries as I understand) need to be done under a lock.
The way you would do this is by adding a
lock
field to the struct, providing it aReentrantLock
on construction, and then calling the C-API only under aThe text was updated successfully, but these errors were encountered: