diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-11-15 06:07:01 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-11-15 15:55:53 +0400 |
commit | f733ef5f6b846248b5581f30db117d52ec173890 (patch) | |
tree | 8a6698222ae289044c25eb8755bfe387fbcd6183 | |
parent | ab3e5b5a2c9d39fa52969e4ab8f0dda0841bffa4 (diff) |
Handle non-thread-safe Math::Geometry::Voronoi. #1527
-rw-r--r-- | lib/Slic3r/ExPolygon.pm | 4 |
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 = (); |