Skip to content

Commit

Permalink
BUG: fix exception handling in itk::PoolMultiThreader
Browse files Browse the repository at this point in the history
Exception thrown in most threads were not caught. Fixes #2776.
  • Loading branch information
Simon Rit authored and dzenanz committed Oct 5, 2021
1 parent ef5a734 commit ec43890
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/Core/Common/src/itkPoolMultiThreader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ PoolMultiThreader::ParallelizeImageRegion(unsigned int dimension,
filter->IncrementProgress(0);
}
} while (status != std::future_status::ready);
m_ThreadInfoArray[i].Future.get();
reporter.CompletedPixel();
});
}
Expand Down

0 comments on commit ec43890

Please sign in to comment.