[Ffmpeg-devel] poll() emulation for ffserver

François Revol revol
Wed Feb 14 16:04:46 CET 2007


> Hi,
> 
> > Hi all,
> >
> > On Wed, 2007-02-14 at 13:30 +0100, Fran?ois Revol wrote:
> >> > On Tue, Feb 13, 2007 at 12:26:18PM +0100, Alex Beregszaszi 
> > > > wrote:
> >> > >
> >> > > > This adds a poll() emulation using select() for platforms 
> > > > > > that
> >> > > > don't
> >> > > > have it.
> >> > > > BeOS is one of them, and I wonder if OS/2 or Cygwin have it.
> >> > > > It's taken from Haiku (aka OpenBeOS, http://haiku-os.org )'s 
> > > > > > code
> >> > > > which
> >> > > > is under MIT licence.
> > At the cost of being naive, I have to ask: why using poll() on some
> > sytems, and select() on other systems? Cannot we always use 
> > select()?
> > Or there are systems in which poll() exists and select() does not?
> > (I am not complaining about the patch; I am just curious)
> 
> Cygwin has got both poll() and select()

That doesn't answers the question.

poll() is supposed to be much faster for watching a high number of fds.
It's actually its sole reason of existence.

Fran?ois.




More information about the ffmpeg-devel mailing list