[Previous] [Contents] [Next]

InterruptEnable()

Enable hardware interrupts

Synopsis:

#include <sys/neutrino.h>

void InterruptEnable( void );

Library:

libc

Description:

The InterruptEnable() function enables all hardware interrupts. It may be called from a thread or from an interrupt handler. Before calling this function the thread must request I/O privity by calling:

ThreadCtl( _NTO_TCTL_IO, 0 );

If the thread doesn't do this, it might SIGSEGV when InterruptUnlock() is called.

This function should be called as quickly as possible after an InterruptDisable() call.


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

Classification:

QNX 6

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

See also:

InterruptDisable(), InterruptLock(), InterruptMask(), InterruptUnlock(), InterruptUnmask(), ThreadCtl()


[Previous] [Contents] [Next]