geos icon indicating copy to clipboard operation
geos copied to clipboard

Prepared geometry is not thread-safe

Open dbaston opened this issue 2 years ago • 1 comments

The current prepared geometry implementations are not thread safe. In https://github.com/dbaston/libgeos/commit/c19605529975875acab04948e0d9a4c6be27ab63 I updated the various lazy initialization methods of PreparedPolygon to use std::call_once. Running a multi-threaded test under valgrind --tool=helgrind shows problems in MCIndexSegmentSetMutualIntersector. There is a lot of state manipulation this class that would need to be removed, while remaining within (or updating) the SegmentSetMutualIntersector interface.

dbaston avatar Feb 14 '23 18:02 dbaston

PR: #826

dbaston avatar Feb 16 '23 02:02 dbaston