We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b121c commit 9d0359fCopy full SHA for 9d0359f
src/geode/inspector/criterion/intersections/model_intersections.cpp
@@ -176,6 +176,7 @@ namespace
176
177
void emplace( geode::index_t p1_id, geode::index_t p2_id )
178
{
179
+ std::lock_guard< std::mutex > lock( mutex_ );
180
intersecting_polygons_.emplace_back( p1_id, p2_id );
181
}
182
@@ -207,6 +208,7 @@ namespace
207
208
const geode::SurfaceMesh< Model::dim >& mesh2_;
209
std::vector< std::pair< geode::index_t, geode::index_t > >
210
intersecting_polygons_;
211
+ std::mutex mutex_;
212
};
213
214
template < typename Model >
0 commit comments