[vlc-devel] [PATCH] lua: fix polling
Pierre Ynard
linkfanel at yahoo.fr
Sat Mar 19 04:39:26 CET 2011
> I don't understand why VLC-LUA provides poll() at all. How is this
> supposed to detect object "kills" or the interface getting shut down?
You might also wonder why socket functions are provided at all then.
Sure, another option is to push back I/O into the lua module. Do you
prefer having interface scripts that use that I/O function by passing
callbacks, or some kind of interface module that's half C, half lua
"command interpreter" script?
Also, the interface gets shut down because the thread is cancelled in
poll(). You could also ask how is the interface supposed to shut down if
it doesn't use poll().
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list