[vlc-devel] [PATCH] Symbian main routine

Tobias Güntner fatbull at web.de
Sat Jan 22 19:34:58 CET 2011


> +static symbian_libvlc_Wait( libvlc_int_t *p_libvlc )
> +{
> +    vlc_sem_init(&exit_sem,0);
> +    vlc_sem_wait(&exit_sem);
> +    vlc_sem_destroy(&exit_sem);
> +}

This is a race condition. It is not guaranteed that vlc_sem_init has
completed when another thread calls vlc_sem_post on exit_sem.

-- 
Regards,
Tobias



More information about the vlc-devel mailing list