Updated: April 19, 2023

Enable hardware interrupts


#include <sys/neutrino.h>

void InterruptEnable( void );



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


The InterruptEnable() function enables all hardware interrupts. You can call it from a thread or from an interrupt handler. Before calling this function:

If you don't do these things, the thread might SIGSEGV when it calls InterruptEnable().

You should call this function as quickly as possible after calling InterruptDisable().


Use InterruptLock() and InterruptUnlock() instead of InterruptDisable() and InterruptEnable(). The InterruptLock() and InterruptUnlock() functions perform the intended function on SMP hardware, and allow your interrupt thread to run on any processor in the system.

The InterruptEnable() function doesn't support nesting. If a specific thread calls this function once and then calls it again without having disabled hardware interrupts, the second call has no effect.


QNX Neutrino

Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes