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 Value

Always returns TRUE

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

Minimum Supported Version RTX64 2013
Header Rtapi.h
Library Rtx_Rtss.lib

See Also:

RtEnableInterrupts

RtEnablePortIo

RtReadPortUchar

RtWritePortUchar