Skip to content

Commit

Permalink
Merge branch 'fibers' into fibers_additional_jmh
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Prud'homme authored and Benjamin Prud'homme committed Dec 4, 2024
2 parents 2726de2 + ab36f17 commit ac0bf36
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void threads(int threadCount, Runnable runnable) throws InterruptedException {
}
} catch (InterruptedException e) {
e.printStackTrace();
throw e;
} finally {
latchDone.countDown();
}
Expand All @@ -84,7 +85,7 @@ void threads(int threadCount, Runnable runnable) throws InterruptedException {

}

Future<?> submit(Runnable runnable) {
Future<?> submit(Runnable runnable) throws InterruptedException {
return executorService.submit(() -> {
try {
semaphore.acquire();
Expand All @@ -95,6 +96,7 @@ Future<?> submit(Runnable runnable) {
}
} catch (InterruptedException e) {
e.printStackTrace();
throw e;
}
});
}
Expand Down

0 comments on commit ac0bf36

Please sign in to comment.