Skip to content

Consider adding a lock to RTree #30

@asinghvi17

Description

@asinghvi17

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 here
finally
	unlock(index.lock)
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions