public PolledInterrupt(InterruptHandler handler) { this.handler = handler; }
/// <summary> /// This function executes an interrupt /// </summary> /// <param name="handle"> the interrupts handler</param> /// <returns> the return value of the interrupt or null if the interrupt did not return a value</returns> public override int?Execute(InterruptHandler handle) { throw new NotImplementedException(); }
public VectoredInterrupt(InterruptHandler handler) { this.handler = handler; }
/// <summary> /// This function executes an interrupt /// </summary> /// <param name="handle"> the interrupts handler</param> /// <returns> the return value of the interrupt or null if the interrupt did not return a value</returns> public abstract int?Execute(InterruptHandler handle);
/// <summary> /// This function executes an interrupt /// </summary> /// <param name="handle"> the interrupts handler</param> /// <returns> the return value of the interrupt or null if the interrupt did not return a value</returns> public override int?Execute(InterruptHandler handle) { throw new NotSupportedException("Only Polled Interrupts can be Executed call Fire() instead"); }