public void ReleaseInterruptHandler(byte irq, IHardwareDevice hardwareDevice) { if (irq >= MaxInterrupts) return; try { spinLock.Enter(); interruptHandlers[irq].Remove(hardwareDevice); } finally { spinLock.Exit(); } }