mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
Background processing in C++, WIP.
This commit is contained in:
parent
8639df1cfd
commit
33e1108f65
17 changed files with 279 additions and 140 deletions
|
@ -1162,7 +1162,7 @@ sub stop_background_process {
|
|||
$self->statusbar->SetCancelCallback(undef);
|
||||
$self->statusbar->StopBusy;
|
||||
$self->statusbar->SetStatusText("");
|
||||
# Stop the background task.
|
||||
# Stop the background task, wait until the thread goes into the "Idle" state.
|
||||
$self->{background_slicing_process}->stop;
|
||||
# Update the UI with the slicing results.
|
||||
$self->{toolpaths2D}->reload_print if $self->{toolpaths2D};
|
||||
|
@ -1275,7 +1275,11 @@ sub on_update_print_preview {
|
|||
# This gets called also if we don't have threads.
|
||||
sub on_process_completed {
|
||||
my ($self, $result) = @_;
|
||||
|
||||
|
||||
# Stop the background task, wait until the thread goes into the "Idle" state.
|
||||
# At this point of time the thread should be either finished or canceled,
|
||||
# so the following call just confirms, that the produced data were consumed.
|
||||
$self->{background_slicing_process}->stop;
|
||||
$self->statusbar->SetCancelCallback(undef);
|
||||
$self->statusbar->StopBusy;
|
||||
$self->statusbar->SetStatusText("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue