InterruptStatus()

Determine whether or not interrupts are enabled

Synopsis:

#include <sys/neutrino.h>

unsigned InterruptStatus( void );

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The InterruptStatus() function indicates whether or not interrupts are currently enabled.

Returns:

0 if interrupts are disabled, or a nonzero value (not necessarily 1) if they're enabled.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

InterruptDisable(), InterruptEnable()

Writing an Interrupt Handler chapter of the Neutrino Programmer's Guide

Interrupts chapter of Getting Started with QNX Neutrino