Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/interruptenable.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/interruptenable.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/interruptenable.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/interruptenable.html on line 8
Enable hardware interrupts
#include <sys/neutrino.h>
void InterruptEnable( void );
libc
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, the thread must request I/O
privileges by calling:
ThreadCtl( _NTO_TCTL_IO, 0 );
If the thread doesn't do this, it 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. |
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
Yes |
Signal handler |
Yes |
Thread |
Yes |
InterruptDisable(),
InterruptLock(),
InterruptMask(),
InterruptUnlock(),
InterruptUnmask(),
ThreadCtl()
Writing an Interrupt Handler
chapter of the Neutrino Programmer's Guide
Interrupts
chapter of Getting Started with QNX Neutrino
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/interruptenable.html on line 138
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/interruptenable.html on line 138