InterruptLock and InterruptDisable?

The man page says the InterruptLock attempts to acquire the spinlock while
interrupts are disabled. When the spinlock is acquired, does it reenable interrupts?
If so, it would not seem to be a replacement for InterruptDisable as the man pages
state.

–
Art Hays
National Institutes of Health
avhays@nih.gov

Art Hays <avhays@nih.gov> wrote:

The man page says the InterruptLock attempts to acquire the spinlock while
interrupts are disabled. When the spinlock is acquired, does it reenable
interrupts?

No, it does not reenable interrupts. That only happens at InterruptUnlock().

It’s an inline function, so you can see exactly what it does by looking at
the /usr/include//neutrino.h header file.

\

Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8