RtDisableInterrupts

In the Win32 environment, RtDisableInterrupts disables all user-level interrupt handling for all interrupts to which the Win32 process is attached.

In an RTSS environment, RtDisableInterrupts disables all interrupts at the processor level including timer interrupts.

Syntax

BOOL RtDisableInterrupts(VOID);

Return Values

TRUE if the function succeeds, FALSE if the function fails

Remarks

To minimize latencies for higher priority threads, RtEnableInterrupts should be called as soon as possible after RtDisableInterrupts.

For Win32 processes, this function does not program the hardware to stop generating interrupts. Such programming must be done separately, typically via port I/O calls to the command/status registers for the device.

Requirements

Header Rtapi.h
Library rtapi_w32.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also:

RtAttachInterruptVector

RtEnableInterrupts

RtEnablePortIo

RtReadPortUchar

RtReleaseInterruptVector

RtWritePortUchar

IntervalZero.com | Support | Give Feedback