[vlc-devel] [PATCH 2/3] sout: add an interrupt context
Rémi Denis-Courmont
remi at remlab.net
Mon Feb 12 19:23:07 CET 2018
Le maanantaina 12. helmikuuta 2018, 20.00.34 EET Thomas Guillem a écrit :
> On Mon, Feb 12, 2018, at 18:56, Rémi Denis-Courmont wrote:
> > NO.
> >
> > Interrupt is explicitly a backward compatibility hack with fundamental
> > design limitations and was specifically meant to work around the design
> > of the input thread. There is absolutely no point in using that on stream
> > output, or more generally anything with push (rather than pull) data
> > flow.
>
> I don't get it, writes on file systems can block like reads, no ?
Interrupts exist because most demuxers do not account for time to obtain data:
The input must either have the data ready, or it must have failed or ended.
There is no data dependency on a write - the data is already there.
In other words, interrupts are not meant as a congestion control mechanism.
--
雷米‧德尼-库尔蒙
https://www.remlab.net/
More information about the vlc-devel
mailing list