Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepared geometry is not thread-safe #825

Open
dbaston opened this issue Feb 14, 2023 · 1 comment
Open

Prepared geometry is not thread-safe #825

dbaston opened this issue Feb 14, 2023 · 1 comment
Milestone

Comments

@dbaston
Copy link
Member

dbaston commented Feb 14, 2023

The current prepared geometry implementations are not thread safe. In dbaston@c196055 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
Copy link
Member Author

dbaston commented Feb 16, 2023

PR: #826

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants