pulse_attach

I’m not sure whether it’s the way I was trying to use it or whether
pulse_attach doesn’t work with resmgr_context_alloc and
resmgr_block. I got it working with the dispatch_* functions. If it
doesn’t work with the resmgr_* functions that should be in the docs and
possibly the example too.

Cheers
Angus


Angus Ainslie Deltatee Enterprises
Software Engineer tel: (403) 250-3533 x237
fax: (403) 263-2170

Angus Ainslie <angusa@deltatee.com> wrote:

I’m not sure whether it’s the way I was trying to use it or whether
pulse_attach doesn’t work with resmgr_context_alloc and
resmgr_block.

pulse_attach() does require the dispatch_*() functions, rather than
the resmgr() ones.

I got it working with the dispatch_* functions. If it
doesn’t work with the resmgr_* functions that should be in the docs and
possibly the example too.

Yes, it probably should be more clear. There are hints there, at least
in the most current, but they are not as clear as they could be. Probably
each function could use a note saying it requires the dispatch* stuff.

(e.g. The current docs, at least, for dispatch_handler() talk about
handling several different types of attaches, while the resmgr_handler()
just talks about handling I/O messages.)

-David

QNX Training Services
dagibbs@qnx.com

David Gibbs wrote:

Angus Ainslie <> angusa@deltatee.com> > wrote:
I’m not sure whether it’s the way I was trying to use it or whether
pulse_attach doesn’t work with resmgr_context_alloc and
resmgr_block.

pulse_attach() does require the dispatch_*() functions, rather than
the resmgr() ones.

I got it working with the dispatch_* functions. If it
doesn’t work with the resmgr_* functions that should be in the docs and
possibly the example too.

Yes, it probably should be more clear. There are hints there, at least
in the most current, but they are not as clear as they could be. Probably
each function could use a note saying it requires the dispatch* stuff.

(e.g. The current docs, at least, for dispatch_handler() talk about
handling several different types of attaches, while the resmgr_handler()
just talks about handling I/O messages.)

If you’re used to using resmgr_* and then add a pulse to your task you
may
miss that in the docs and end up spending a half a day scratching your
head. I think it would be clearer with a little note added to each
function.

-David

QNX Training Services
dagibbs@qnx.com


Angus Ainslie Deltatee Enterprises
Software Engineer tel: (403) 250-3533 x237
fax: (403) 263-2170