Re: [FFmpeg-devel] [PATCH 2/2] avformat/udp: cancel pending IO on win32 manually

2020-02-03 Thread Mark Himsley
On Mon, 3 Feb 2020 at 17:19, Marton Balint wrote: > > > > On Mon, 3 Feb 2020, Mark Himsley wrote: > > > On Sun, 26 Jan 2020 at 21:22, Marton Balint wrote: > >> > >> recvfrom() is not a cancellation point in pthreads-win32, see > >> https://sourceware.org/pthreads-win32/manual/pthread_cancel.html

Re: [FFmpeg-devel] [PATCH 2/2] avformat/udp: cancel pending IO on win32 manually

2020-02-03 Thread Marton Balint
On Mon, 3 Feb 2020, Mark Himsley wrote: On Sun, 26 Jan 2020 at 21:22, Marton Balint wrote: recvfrom() is not a cancellation point in pthreads-win32, see https://sourceware.org/pthreads-win32/manual/pthread_cancel.html In order to be able to cancel the reader thread on Win32 properly we fir

Re: [FFmpeg-devel] [PATCH 2/2] avformat/udp: cancel pending IO on win32 manually

2020-02-03 Thread Mark Himsley
On Sun, 26 Jan 2020 at 21:22, Marton Balint wrote: > > recvfrom() is not a cancellation point in pthreads-win32, see > https://sourceware.org/pthreads-win32/manual/pthread_cancel.html > > In order to be able to cancel the reader thread on Win32 properly we first > shutdown the socket then call Can

[FFmpeg-devel] [PATCH 2/2] avformat/udp: cancel pending IO on win32 manually

2020-01-26 Thread Marton Balint
recvfrom() is not a cancellation point in pthreads-win32, see https://sourceware.org/pthreads-win32/manual/pthread_cancel.html In order to be able to cancel the reader thread on Win32 properly we first shutdown the socket then call CancelIoEx to abort pending IO. Subsequent recvfrom() calls will f