[vlc-devel] [PATCH]Win32 screensaver disable change part II
Kaarlo Räihä
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.
>
> --
> Rémi
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110503/f77a20e7/attachment.html>
More information about the vlc-devel
mailing list