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

ProcessInterrupt() public method

Processes the interrupt.
public ProcessInterrupt ( byte irq ) : void
irq byte The irq.
return void
        public void ProcessInterrupt(byte irq)
        {
            try
            {
                spinLock.Enter();

                foreach (var hardwareDevice in interruptHandlers[irq])
                {
                    hardwareDevice.OnInterrupt();
                }
            }
            finally
            {
                spinLock.Exit();
            }
        }