mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Free @_ before spawning a new thread (known old Perl bug) as an attempt to fix the unref scalars error
This commit is contained in:
@@ -84,6 +84,7 @@ sub parallelize {
|
||||
$q->enqueue(@items, (map undef, 1..$Config->threads));
|
||||
|
||||
my $thread_cb = sub { $params{thread_cb}->($q) };
|
||||
@_ = ();
|
||||
foreach my $th (map threads->create($thread_cb), 1..$Config->threads) {
|
||||
$params{collect_cb}->($th->join);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user