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

Rémi Denis-Courmont remi at remlab.net
Wed Aug 26 20:42:21 CEST 2020


Le keskiviikkona 26. elokuuta 2020, 20.19.55 EEST Romain Vimont a écrit :
> The background worker API works, but it turns out to be complex to use
> (IMO).
(...)
> I would like to propose a new API, hopefully easier to use.

I agree...

But.

Adding yet another API is not exactly making things better, unless the goal is 
to replace/remove the existing one. Not to mention that the preexisting timer 
and the recently generalised threaded queue also partially overlap.

(...)
> In order to support the background worker features, a timeout can be
> provided to automatically cancel/interrupt the task (which adds quite a lot
> of complexity).

TBH, I don't really see the point. One Does Not Simply interrupt a runnable, 
unless it is running in a dedicated process (which can be killed). Thus, the 
runnable need to handle this internally, and there's not much point exposing 
it to the runner.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list