This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Wait on multiple objects
- From: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- To: 'Nick Garnett' <nickg at ecoscentric dot com>
- Cc: 'Jonathan Larmour' <jifl at eCosCentric dot com>, "Ecos-List (E-mail)" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 19 Feb 2003 22:07:12 -0800
- Subject: RE: [ECOS] Wait on multiple objects
> -----Original Message-----
> From: Nick Garnett [mailto:nickg at ecoscentric dot com]
> Sent: Wednesday, February 19, 2003 3:44 PM
> To: Fabrice Gautier
> Cc: 'Jonathan Larmour'; Ecos-List (E-mail)
> Subject: Re: [ECOS] Wait on multiple objects
>
>
> > //add thread to multiple queues
> > for(u=0; u<nfls; u++) {
> > Cyg_Flag *flag=(Cyg_Flag *)ufls[u];
> > flag->queue.enqueue(self);
>
> This is the bit that doesn't work. Each thread only has one list node
> for adding to a queue. You cannot add a thread directly to more than
> one queue.
All right, I understand now....
> Trust me, I've looked at this sort of thing, and run away
> screaming :-)
I see, i'll stop talking about this then, i dont want to cause nightmares to
anyone...
Thanks,
Fabrice Gautier
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss