<br><br><div class="gmail_quote">2011/1/10 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net">remi@remlab.net</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
On Mon, 10 Jan 2011 19:59:33 +0530, Pankaj yadav <<a href="mailto:pankajdnapster@gmail.com">pankajdnapster@gmail.com</a>><br>
wrote:<br>
<div class="im">>> You don't seem to use the thread handle ever, which seems like a bug.<br>
>> Where is the thread joined?<br>
><br>
> do we need to join if we are sure that thread doesn't wait for<br>
> anything..there are no chances of this threadcontroller getting<br>
deadlocked<br>
> ?<br>
<br>
</div>Then how do you make sure that the resources and code segment used by the<br>
thread won't get deleted while the thread is still running?<br>
<div class="im"><br></div></blockquote><div>The thread runs throughout the life of libvlc.Following is the only condition when it is killed.<br>1.dead=1 -----> thread kills itself cleaning all its resources. <br></div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
>> What happens if libvlc is initialized multiple<br>
>> times??<br>
>><br>
> are there any chances?<br>
<br>
</div>Depends on what uses the library. But if there were no chances, there is no<br>
point in using pthread_once().<br>
<font color="#888888"><br></font></blockquote><div>this pthread_once thing isn't <a href="http://mine.it">mine.it</a> 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.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#888888">
<br>
--<br>
</font><div><div></div><div class="h5">Rémi Denis-Courmont<br>
<a href="http://www.remlab.net" target="_blank">http://www.remlab.net</a><br>
<a href="http://fi.linkedin.com/in/remidenis" target="_blank">http://fi.linkedin.com/in/remidenis</a><br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Pankaj Yadav<br><a href="http://people.videolan.org/%7Epk" target="_blank">http://people.videolan.org/~pk</a><br>Open Source Enthusiast<br>