Make threaded perls work with XS data in plater thumbnails. Includes cleaner ->arrayref implementation

This commit is contained in:
Alessandro Ranellucci 2013-07-11 19:34:37 +02:00
parent fb7cea3cb9
commit 89fae9ee15
2 changed files with 5 additions and 6 deletions

View file

@ -741,12 +741,11 @@ sub make_thumbnail {
if ($Slic3r::have_threads) {
Wx::PostEvent($self, Wx::PlThreadEvent->new(-1, $THUMBNAIL_DONE_EVENT, shared_clone([ $obj_idx, $thumbnail ])));
Slic3r::thread_cleanup();
threads->exit;
} else {
$self->on_thumbnail_made($obj_idx);
}
Slic3r::thread_cleanup() if $Slic3r::have_threads;
};
@_ = ();