This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem spawning a thread in Ecos
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: "Nikhil R." <nikhil_r at mindtree dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 15 Jan 2003 14:28:37 +0000
- Subject: Re: [ECOS] Problem spawning a thread in Ecos
- References: <E125980C421DFD4DA0B80D55DB1EDA58BEFA1D@mtv01ex01.mindtree.com>
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