Mosa.HardwareSystem.InterruptManager.AddInterruptHandler C# (CSharp) Method

AddInterruptHandler() public method

Adds the interrupt handler.
public AddInterruptHandler ( byte irq, IHardwareDevice hardwareDevice ) : void
irq byte The irq.
hardwareDevice IHardwareDevice The hardware device.
return void
        public void AddInterruptHandler(byte irq, IHardwareDevice hardwareDevice)
        {
            if (irq >= MaxInterrupts)
                return;

            try
            {
                spinLock.Enter();
                interruptHandlers[irq].AddLast(hardwareDevice);
            }
            finally
            {
                spinLock.Exit();
            }
        }