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: short reads on serial port..


Grant Edwards wrote:
> 
> On Thu, Oct 26, 2000 at 08:16:58PM +0100, Jonathan Larmour wrote:
> 
> > > Should I use select, what does it drag in the way of extra stuff to my
> > > build ... I don't want to have to add POSIX stuff really...
> >
> > Um, serial reads do block by default. If you want to wait on multiple
> > devices but avoid select, you could use multiple threads using blocking
> > reads, which then signal your original thread when data arrives.
> 
> Does the serial driver support select?

In CVS, yes it should.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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