![]() |
![]() |
![]() |
![]() |
Determine whether or not interrupts are enabled
#include <sys/neutrino.h> unsigned InterruptStatus( void );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The InterruptStatus() function indicates whether or not interrupts are currently enabled.
0 if interrupts are disabled, or a nonzero value (not necessarily 1) if they're enabled.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
InterruptDisable(), InterruptEnable()
Writing an Interrupt Handler chapter of the Neutrino Programmer's Guide
Interrupts chapter of Getting Started with QNX Neutrino
![]() |
![]() |
![]() |
![]() |