<br><br><div class="gmail_quote">On Sun, Jan 23, 2011 at 12:04 AM, Tobias Güntner <span dir="ltr"><<a href="mailto:fatbull@web.de">fatbull@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
> +static symbian_libvlc_Wait( libvlc_int_t *p_libvlc )<br>
> +{<br>
> + vlc_sem_init(&exit_sem,0);<br>
> + vlc_sem_wait(&exit_sem);<br>
> + vlc_sem_destroy(&exit_sem);<br>
> +}<br>
<br>
This is a race condition. It is not guaranteed that vlc_sem_init has<br>
completed when another thread calls vlc_sem_post on exit_sem.<br>
<br></blockquote><div>fixed in attached patch<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
--<br>
Regards,<br>
<font color="#888888">Tobias<br>
</font><div><div></div><div class="h5">_______________________________________________<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>