This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Sample program twothreads wont work.



I have tried with the repository I got from using the 
cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/ecos -z 9 co -P ecos 
commad in CVS and I tried with the repository I got from 
ftp://ftp.skynet.ie/cvs/ecos-latest.tar.gz                
but it still wont work.

Anyone?

David

-----Original Message-----
From: Trenton D. Adams [mailto:tadams@extremeeng.com]
Sent: den 27 juni 2001 17:20
To: Karlberg David; ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] Sample program twothreads wont work.


I had the same problem.  Jonathan Larmour suggested that I try using a
different repository!  It worked for me.  I then recompiled, and
everything worked fine.

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com 
> [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of 
> David.Karlberg@combitechsystems.com
> Sent: Wednesday, June 27, 2001 9:01 AM
> To: ecos-discuss@sources.redhat.com
> Subject: [ECOS] Sample program twothreads wont work.
> 
> 
> Hi,
> 
> I am using eCos on a Brightstar mediaEngine. But using the 
> nanoEngine port to ecos. I have been trying out the sample 
> programs that come with eCos. The sample program "eCos Hello 
> World" works just fine. The sample program with Alarms works 
> fine.  But the sample program with two threads won't run.
> 
> I have used breakpoints to see where it stops.
> It initiates the first thread and then it is suppossed to 
> initiate the 
> second thread, but it just stops.
> 
> Whats wrong?
> 
> thanks in advance
> 
> David
> 
> 
> 
> void cyg_user_start(void)
> {
>   printf("Entering twothreads' cyg_user_start() function\n");
> 
>   cyg_mutex_init(&cliblock);
> 
>   cyg_thread_create(4, simple_program, (cyg_addrword_t) 0,
> 		    "Thread A", (void *) stack[0], 4096,
> 		    &simple_threadA, &thread_s[0]);
>   cyg_thread_create(4, simple_program, (cyg_addrword_t) 1,    
>  <-----it
> stops here!!
> 		    "Thread B", (void *) stack[1], 4096,
> 		    &simple_threadB, &thread_s[1]);
> 
>   cyg_thread_resume(simple_threadA);
>   cyg_thread_resume(simple_threadB);
> }
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]