Workaround dclone() not being thread-safe

This commit is contained in:
Alessandro Ranellucci committed 2013-07-06 12:14:49 +02:00
1 parent 9dbf21235c
commit 8d1069766b
3 files changed
+16 -1

No files matched your search

+5
View File
@@ -24,6 +24,11 @@ sub clone {
Storable::dclone($_[0])
}
sub threadsafe_clone {
my $self = shift;
return (ref $self)->new(@$self);
}
sub coincides_with {
my $self = shift;
my ($point) = @_;