Skip to content

Commit

Permalink
Merge pull request #639 from bonej-org/master
Browse files Browse the repository at this point in the history
Outline: use only 1 thread until the multithreading model is fixed.
  • Loading branch information
mdoube authored Aug 27, 2021
2 parents 2e1ccab + c33ab86 commit 6fe7051
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void compute(final RandomAccessibleInterval<B> input,
{
final ExtendedRandomAccessibleInterval<B, RandomAccessibleInterval<B>> extendedInput =
extendInterval(input);
final int nThreads = Runtime.getRuntime().availableProcessors();
final int nThreads = 1;
final ExecutorService pool = Executors.newFixedThreadPool(nThreads);
final List<Future<?>> futures = new ArrayList<>();
final long[] dimensions = new long[input.numDimensions()];
Expand Down

0 comments on commit 6fe7051

Please sign in to comment.