Skip to content

Commit

Permalink
Check for user interrupts in handler thread
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Dec 20, 2023
1 parent f67c141 commit 983f7ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void start() {
});
interruptChecks = executor.scheduleWithFixedDelay(() -> {
if (!shouldTrigger) {
shouldTrigger = isActive && (nextWakeUpTickTrigger() || pendingFinalizationSignals() || hasSemaphoresToSignal());
shouldTrigger = isActive && (interruptPending() || nextWakeUpTickTrigger() || pendingFinalizationSignals() || hasSemaphoresToSignal());
}
}, INTERRUPT_CHECKS_EVERY_N_MILLISECONDS, INTERRUPT_CHECKS_EVERY_N_MILLISECONDS, TimeUnit.MILLISECONDS);
}
Expand Down

0 comments on commit 983f7ac

Please sign in to comment.