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]
Other format: [Raw text]

RE: Wait on multiple objects


Well, I can only wait on one flag object right?
So if i have two (or more) modules that i want to control with flags then
they have to share a common flag. That's what the implementation of pselect
does also with a conditonnal variable i believe.

This would work for my purpose so maybe that's what i end up doing. But i
was actually looking for a way to port some code that use select without
having to include the io packages. I figured out that what i was looking for
was a wait on multiple objects.

I guess there's not such thing yet in eCos. The principle to implement this
kind of feature look pretty simple, but i guess it would also be easy to
have many race conditions and other problems in the actual
implementation....

-- 
Fabrice Gautier, 
Fabrice_Gautier at sdesigns dot com


> -----Original Message-----
> From: Jonathan Larmour [mailto:jifl at eCosCentric dot com]
> Sent: Wednesday, February 19, 2003 7:14 AM
> To: Fabrice Gautier
> Cc: Ecos-List (E-mail)
> Subject: Re: [ECOS] Wait on multiple objects
> 
> 
> Fabrice Gautier wrote:
> > Hi,
> > 
> > I'm looking for a way to wait on multiple object, for 
> example multiple
> > conditionnal variables. Something that would provide a 
> functionality similar
> > to select. 
> > 
> > The thing is i dont want to include all the io packages 
> just to use select.
> > I've looked at how the pselect implementation is done, but 
> i'm a bit puzzled
> > since it seems  pselect wait on only one object.
> > 
> > Is there any (easy) way to do something that looks like 
> wait queues ?
> 
> What about flags?
> 
> Jifl
> -- 
> eCosCentric    http://www.eCosCentric.com/    The eCos and 
> RedBoot experts
> --[ "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


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