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