[FFmpeg-devel] [PATCH 1/5] udp: use pthread_cancel instead of a shared flag.

Nicolas George nicolas.george at normalesup.org
Wed Mar 21 08:52:48 CET 2012


L'octidi 28 ventôse, an CCXX, Nicolas George a écrit :
> To build up on what I wrote in my other mail, pthread_cancel and related are
> standard non-optional features, and recv is amongst the standard
> cancellation points since Singne Unix v3 and POSIX.1-2001.
> 
> I have looked at the man page of a few Unix on the web, and tested what I
> could:
> 
> On NetBSD, recv is listed as a cancellation point in
> pthread_setcancelstate(3) and it works.
> 
> On OpenBSD, recv is not listed as a cancellation point, but read is, and I
> could test the patch: it works.
> 
> On FreeBSD, same documentation, I could not test.
> 
> Same on Darwin, plus its advocates are always bragging it is a
> standard-compliant Unix.
> 
> Same for Solaris, but getmsg is listed, and AFAIR sockets are implemented on
> top of STREAMS.
> 
> On the whole, the odds seem pretty good, and since the benefits are quite
> interesting (simpler and more efficient), I think we should go on.

Any objections? If not, I shall apply this patch and all its approved
brothers soon.

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list