Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-11-15 06:07:01 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-11-15 15:55:53 +0400
commitf733ef5f6b846248b5581f30db117d52ec173890 (patch)
tree8a6698222ae289044c25eb8755bfe387fbcd6183
parentab3e5b5a2c9d39fa52969e4ab8f0dda0841bffa4 (diff)
Handle non-thread-safe Math::Geometry::Voronoi. #1527
-rw-r--r--lib/Slic3r/ExPolygon.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Slic3r/ExPolygon.pm b/lib/Slic3r/ExPolygon.pm
index 3e8d91713..b72b93542 100644
--- a/lib/Slic3r/ExPolygon.pm
+++ b/lib/Slic3r/ExPolygon.pm
@@ -170,9 +170,13 @@ sub _medial_axis_clip {
return @result;
}
+my $voronoi_lock :shared;
+
sub _medial_axis_voronoi {
my ($self, $width) = @_;
+ lock($voronoi_lock);
+
my $voronoi;
{
my @points = ();