[vlc-devel] [PATCH 3/3] Symbian specific initialization routines

Pankaj yadav pankajdnapster at gmail.com
Mon Jan 10 18:58:59 CET 2011


2011/1/10 Rémi Denis-Courmont <remi at remlab.net>

>
> On Mon, 10 Jan 2011 19:59:33 +0530, Pankaj yadav <pankajdnapster at gmail.com
> >
> wrote:
> >> You don't seem to use the thread handle ever, which seems like a bug.
> >> Where is the thread joined?
> >
> > do we need to join if we are sure that thread doesn't wait for
> > anything..there are no chances of this threadcontroller getting
> deadlocked
> > ?
>
> Then how do you make sure that the resources and code segment used by the
> thread won't get deleted while the thread is still running?
>
> The thread runs throughout the life of libvlc.Following is the only
condition when it is killed.
1.dead=1 -----> thread kills itself cleaning all its resources.

> >> What happens if libvlc is initialized multiple
> >> times??
> >>
> > are there any chances?
>
> Depends on what uses the library. But if there were no chances, there is no
> point in using pthread_once().
>
> this pthread_once thing isn't mine.it is copied from
/src/misc/not_specific.c.There are NO chances that libvlc is initialized
multiple times within a single instance of aplication(VLC).As far as
multiple instances are considered, it is ok.

>
> --
> Rémi Denis-Courmont
> http://www.remlab.net
> http://fi.linkedin.com/in/remidenis
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



-- 
Pankaj Yadav
http://people.videolan.org/~pk <http://people.videolan.org/%7Epk>
Open Source Enthusiast
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110110/dcd9ef2c/attachment.html>


More information about the vlc-devel mailing list