[FFmpeg-devel] [PATCH 1/4] TCP: factor the poll() call

Nicolas George nicolas.george
Wed Feb 2 19:20:23 CET 2011

Le quartidi 14 pluvi?se, an CCXIX, M?ns Rullg?rd a ?crit?:
> > +static int tcp_wait_fd(int fd, int write)
> Is there a reason you don't let the caller simply pass POLLIN or
> POLLOUT directly?

I wrote tcp_wait_fd when the code was still using select, but the change to
poll was an idea floating around. Using this method limited the places where
it needed to be changed, and will limit it also if for whatever reason it
must be changed from poll to something else.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110202/d211f030/attachment.pgp>

More information about the ffmpeg-devel mailing list