mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Workaround dclone() not being thread-safe
This commit is contained in:
1 parent
9dbf21235c
commit
8d1069766b
3 files changed
+16
-1
No files matched your search
@@ -22,6 +22,11 @@ sub clone {
|
||||
Storable::dclone($_[0])
|
||||
}
|
||||
|
||||
sub threadsafe_clone {
|
||||
my $self = shift;
|
||||
return (ref $self)->new(map $_->threadsafe_clone, @$self);
|
||||
}
|
||||
|
||||
sub serialize {
|
||||
my $self = shift;
|
||||
return pack 'l*', map @$_, @$self;
|
||||
|
||||
Reference in new issue
Block a user