ISR detachment

What will happen if my thread attaches a ISR and later dies without
detaching it? Does the kernel detach it automatically?

Thanks,

Xuedong

Xuedong Chen <Xuedong.Chen@igt.com> wrote:

What will happen if my thread attaches a ISR and later dies without
detaching it? Does the kernel detach it automatically?

Yes.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Chris McKillop <cdm@qnx.com> wrote:

Xuedong Chen <> Xuedong.Chen@igt.com> > wrote:
What will happen if my thread attaches a ISR and later dies without
detaching it? Does the kernel detach it automatically?


Yes.

Unless you use _NTO_INTR_FLAGS_PROCESS, in which case it will remain
attached until the process dies.

\

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

Thanks, guys.
<bstecher@qnx.com> wrote in message news:bemb7u$j00$1@nntp.qnx.com

Chris McKillop <> cdm@qnx.com> > wrote:
Xuedong Chen <> Xuedong.Chen@igt.com> > wrote:
What will happen if my thread attaches a ISR and later dies without
detaching it? Does the kernel detach it automatically?


Yes.

Unless you use _NTO_INTR_FLAGS_PROCESS, in which case it will remain
attached until the process dies.

\

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