Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

Cause

Fire and software interrupt

Declaration

Source position: exec.pas line 1813

procedure Cause(

  Interrupt_: PInterrupt

);

Arguments

Interrupt_

  

Pointer to a initialized interrupt node

Description

This function causes a software interrupt to occur. If it is called from user mode (and processor level 0), the software interrupt will preempt the current task. This call is often used by high-level hardware interrupts to defer medium-length processing down to a lower interrupt level. Note that a software interrupt is still a real interrupt, and must obey the same restrictions on what system function it may call.

NOTE

When setting up the PInterrupt structure, set the node type to NT_INTERRUPT, or NT_UNKOWN.


Documentation generated on: 2021-07-30