[vlc-devel] [RFC 0/2] New executor API

Rémi Denis-Courmont remi at remlab.net
Thu Aug 27 16:47:49 CEST 2020

Le torstaina 27. elokuuta 2020, 17.32.10 EEST Romain Vimont a écrit :
> Yes, but vlc_executor_Cancel() may "interrupt" the task at any time, so
> you have to handle it anyway (timeout or not).

That's never going to work, unless the runnable has its own killable process 
(which should be had for other reasons, notably I/O scheduling).

> And once you implemented it for cancelation, you do not want to handle
> timeout separately.

Not really, no. Cancelation is not the same condition, and it does not need a 
whole thread of its own to trigger.


More information about the vlc-devel mailing list