This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: Unexpected exit from threads
- From: David Luca <davidluca3000 at yahoo dot com>
- To: Nick Garnett <nickg at ecoscentric dot com>, ecos-devel <ecos-devel at sourceware dot org>, ecos-discuss <ecos-discuss at sourceware dot org>
- Date: Thu, 23 Nov 2006 02:07:21 -0800 (PST)
- Subject: Re: Unexpected exit from threads
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=e+0iV2U4hgmgNYQIYX4g6nT+fqhWuGtgyHRxHS0ipAKE+RFoj5VCqRT5RNKnmSVXuxIAABcB6eGrOCwwRMJNKV4uc584OL9W/Db/28B9Gs6Ab96OTAg567UGfgojFUzIBatDry1tUFUcUGKgDmzXZVgfFlzQEyMm/cTbfGVp5+8= ;
Yes, the for loops are long enough for the leds to be
visible. I traced the cyg_thread_delay and after the
Cyg_Thread::unlock() call, nothing happens, the
execution goes to the main function.
--- Nick Garnett <nickg@ecoscentric.com> wrote:
> David Luca <davidluca3000@yahoo.com> writes:
>
> > Hello,
> >
> > I tried the example found in twothreads.c, but
> renamed
> > the file to hello.cpp to compile it with g++.
> > I commented the printf calls and replaced with
> > lighting led functions. The code looks like:
>
> What happens if you leave the printf()s in as well
> as the led
> functions? Are you sure that the for loop are long
> enough for the led
> changed to be visible?
>
> >
> > When I run this example, I can see that each of
> the 2
> > leds are lit, then the threads exits without
> > continuing.
>
> It is unlikely that the threads are exiting...
>
> > Is there something wrong with the
> > scheduler?
>
> ...or that there is anything wrong with the
> scheduler.
>
>
> --
> Nick Garnett
> eCos Kernel Architect
> http://www.ecoscentric.com The eCos
> and RedBoot experts
>
>
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index