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 |