Files
slic3r/threads.patch

35 lines
1.5 KiB
Diff
Raw Permalink Normal View History

diff -ur Slic3r/lib/Slic3r/GUI/Plater.pm Slic3r-master/lib/Slic3r/GUI/Plater.pm
--- Slic3r/lib/Slic3r/GUI/Plater.pm 2017-08-24 23:41:30.435876258 +0200
+++ Slic3r-master/lib/Slic3r/GUI/Plater.pm 2017-08-24 23:50:58.951927818 +0200
@@ -9,7 +9,7 @@
use List::Util qw(sum first max none any);
use Slic3r::Geometry qw(X Y Z MIN MAX scale unscale deg2rad rad2deg);
use LWP::UserAgent;
-use threads::shared qw(shared_clone);
+use threads; use threads::shared qw(shared_clone);
use Wx qw(:button :cursor :dialog :filedialog :keycode :icon :font :id :misc
:panel :sizer :toolbar :window wxTheApp :notebook :combobox);
use Wx::Event qw(EVT_BUTTON EVT_COMMAND EVT_KEY_DOWN EVT_MOUSE_EVENTS EVT_PAINT EVT_TOOL
diff -ur Slic3r/lib/Slic3r/GUI.pm Slic3r-master/lib/Slic3r/GUI.pm
--- Slic3r/lib/Slic3r/GUI.pm 2017-08-24 23:41:30.431876201 +0200
+++ Slic3r-master/lib/Slic3r/GUI.pm 2017-08-24 23:51:40.660514451 +0200
@@ -17,6 +17,7 @@
};
}
+use threads;
use File::Basename qw(basename);
use FindBin;
use List::Util qw(first any);
diff -ur Slic3r/lib/Slic3r.pm Slic3r-master/lib/Slic3r.pm
--- Slic3r/lib/Slic3r.pm 2017-08-24 23:41:30.427876144 +0200
+++ Slic3r-master/lib/Slic3r.pm 2017-08-24 23:53:06.285717398 +0200
@@ -91,6 +91,7 @@
# use constant INFILL_OVERLAP_OVER_SPACING => 0.3;
# Keep track of threads we created. Each thread keeps its own list of threads it spwaned.
+use threads;
my @my_threads = ();
my @threads : shared = ();
my $pause_sema = Thread::Semaphore->new;