This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: priority of main thread
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Bob dot Brusa at gmail dot com
- Cc: "MailingList:ecos-discuss ;" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 20 Nov 2008 08:34:18 -0700
- Subject: Re: [ECOS] priority of main thread
- References: <op.ukxbn8ajkeg3uf@localhost>
Robert Brusa wrote:
> Hi,
> in my system, I have a cyg_user_start() as well as a main() function.
> The first includes calls to initialize various modules. main() contains
> an eternal loop and is assumed to work as a normal thread. The problem
> is that main produces a hanger when I call cyg_spi_transfer to read my
> onboard-RTC. When using this RTC-module in a test program with a single
> thread it works. It also works (in main) when I change the transfer-mode
> to polling. This let me think that there is some kind of priority
> problem. How can I access and manipulate the priority of main? I have no
> handle for this thread. Thanks for advice.
How is main() getting started? Since you've overridden the
default cyg_user_start() [which normally starts the main thread],
it's not clear to me how main() even runs.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss