InterruptHookIdle -- Best way to install?

I understand InterruptHookIdle and have it working well. I want to
create a simple driver (not even a driver) that installs the hook and
then does nothing. What is the best way to do nothing forever?

Some thoughts that come to mind are:
block on a channel
raise(SIGSTOP)
others ?

-david

from a thread i usually use pause() which does a sigwaitinfo on an empty
signal set.
but from the interrupt routine you can’t do this.
what about blocking on a time incredibly far in the future? or block on a
shorter time period and then wakeup and block again?

you don’t want to call halt or loop though i don’t think…

David Alessio <david.alessio@hsa.hitachi.com> wrote:

I understand InterruptHookIdle and have it working well. I want to
create a simple driver (not even a driver) that installs the hook and
then does nothing. What is the best way to do nothing forever?

Some thoughts that come to mind are:
block on a channel
raise(SIGSTOP)
others ?

-david


Randy Martin randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579

Randy Martin wrote:

from a thread i usually use pause() which does a sigwaitinfo on an empty
signal set.

This is perfect. Thanks.


but from the interrupt routine you can’t do this.
wouldn’t want to.



what about blocking on a time incredibly far in the future? or block on a
shorter time period and then wakeup and block again?

you don’t want to call halt or loop though i don’t think…

David Alessio <> david.alessio@hsa.hitachi.com> > wrote:

I understand InterruptHookIdle and have it working well. I want to
create a simple driver (not even a driver) that installs the hook and
then does nothing. What is the best way to do nothing forever?

Some thoughts that come to mind are:
block on a channel
raise(SIGSTOP)
others ?

-david


Randy Martin > randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems > www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579