Mosa.HardwareSystem.InterruptManager.AddInterruptHandler C# (CSharp) Méthode

AddInterruptHandler() public méthode

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

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