void* (exitfunc)(void* status) ?

hello how are you today?

Im having a little problem getting the correct syntax for assigning the
void* (exitfunc)(void* status) for a pthread attribute structure.
can anybody help me, I can’t find a >coding< example anywhere.

thank you very much

demian

I haven’t tried that, but it should be straightforward, like:

void *exitfunc(void *status)
{
// …
}

main()
{
_thread_attr attr;
attr.exitfunc = exitfunc;

ThreadCreate(…, &attr);
}

Markus


“Demian” <damient@wave.home.com> wrote in message
news:97it2h$4rs$1@inn.qnx.com

hello how are you today?

Im having a little problem getting the correct syntax for assigning the
void* (exitfunc)(void* status) for a pthread attribute structure.
can anybody help me, I can’t find a >coding< example anywhere.

thank you very much

demian

Install the optional docs for Rob Krten’s ‘Getting started with QNX Neutrino
2’ and get the code examples from the website www.parse.com - they have some
good thread examples and lots of other interesting stuff.

“Demian” <damient@wave.home.com> wrote in message
news:97it2h$4rs$1@inn.qnx.com

hello how are you today?

Im having a little problem getting the correct syntax for assigning the
void* (exitfunc)(void* status) for a pthread attribute structure.
can anybody help me, I can’t find a >coding< example anywhere.

thank you very much

demian