[Previous] [Contents] [Next]

InterruptUnlock()

Release a critical section in an interrupt handler

Synopsis:

#include <sys/neutrino.h>

void InterruptUnlock( intrspin_t* spinlock );

Library:

libc

Description:

The InterruptUnlock() function releases a critical section by unlocking the specified spinlock, reenabling 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.

Classification:

QNX 6

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

See also:

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


[Previous] [Contents] [Next]