[vlc-devel] [PATCH]Win32 screensaver disable change part II
kaarlo.raiha at gmail.com
Tue May 3 09:20:44 CEST 2011
2011/5/2 Rémi Denis-Courmont <remi at remlab.net>
> ----- Message d'origine -----
> > It isn't perfect code wise, since I have NO clue how to create thread
> > without parameters using vlc thread functions.
> That is impossible. If you do not need any parameter, the convention is to
> pass NULL. That being said, there is almost always need to pass a parameter,
> some kind of context.
> > kill_thread(id)
> Killing a thread makes no sense. Every thread has to be joined, before the
> plugin is unloaded and before its context data gets invalidated.
Problem with join is that 50 seconds long sleep function I have since AFAIK
join needs selfterminating threads. But in Win32 (according to MSDN) you are
allowed to use ExitThread or similar function to terminate threads since VLC
is C code.
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel