[FFmpeg-devel] [PATCH 1/4] TCP: factor the poll() call
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel