[ECOS] Problem spawning a thread in Ecos
Jonathan Larmour
jifl@eCosCentric.com
Wed Jan 15 14:28:00 GMT 2003
Nikhil R. wrote:
> Hi all,
>
> We have a problem spawning a thread in Ecos using Uitron calls.
> We have created our own package to run on ecos. We r also using the Uitron
> compatibility package. From the constuctor of our package we make a call to
> cre_tsk. The call fails. [snip]
> /*
> * This function is invoked by constructor of the mnet_class
> * instance. This class is defined in ecos/init.cxx.
> * when the stack is brought up. This function spawns a IPv6
> * background thread.
> */
By donig this in ecos/init.cxx the constructor is run at the priority of
the networking subsystem. This will be before the uitron subsystem is
initialized. This is probably because down the road uitron may acquire
networking functions so it would need to be that way round.
Define your own constructor in the same way as ecos/init.cxx but give it
default priority.
Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list