1
Files
interrupt-handling-using-th…/code/interruptdispatcher_ignore_spurious.cpp
2023-03-02 17:29:30 +01:00

8 lines
269 B
C++

// Excerpt from the "dispatch" function
void InterruptDispatcher::dispatch(InterruptVector vec) {
if (interruptService.checkSpuriousInterrupt(slot)) {
spuriousCounterWrapper.inc();
return; // Early return to skip the calling of any handlers
}
}