/* Create thread and wait for its readiness. */
if( vlc_thread_create( p_input, "input", Run,
- VLC_THREAD_PRIORITY_INPUT, true ) )
+ VLC_THREAD_PRIORITY_INPUT, false ) )
{
input_ChangeState( p_input, ERROR_S );
msg_Err( p_input, "cannot create input thread" );
else
{
if( vlc_thread_create( p_input, "input", RunAndDestroy,
- VLC_THREAD_PRIORITY_INPUT, true ) )
+ VLC_THREAD_PRIORITY_INPUT, false ) )
{
input_ChangeState( p_input, ERROR_S );
msg_Err( p_input, "cannot create input thread" );
input_thread_t *p_input = (input_thread_t *)p_this;
const int canc = vlc_savecancel();
- /* Signal that the thread is launched */
- vlc_thread_ready( p_input );
-
if( Init( p_input ) )
{
/* If we failed, wait before we are killed, and exit */
input_thread_t *p_input = (input_thread_t *)p_this;
const int canc = vlc_savecancel();
- /* Signal that the thread is launched */
- vlc_thread_ready( p_input );
-
if( Init( p_input ) )
goto exit;
vlc_object_attach( p_playlist->p->p_preparse, p_playlist );
if( vlc_thread_create( p_playlist->p->p_preparse, "preparser",
- RunPreparse, VLC_THREAD_PRIORITY_LOW, true ) )
+ RunPreparse, VLC_THREAD_PRIORITY_LOW, false ) )
{
msg_Err( p_playlist, "cannot spawn preparse thread" );
vlc_object_release( p_playlist->p->p_preparse );
if( vlc_thread_create( p_playlist->p->p_fetcher,
"fetcher",
RunFetcher,
- VLC_THREAD_PRIORITY_LOW, true ) )
+ VLC_THREAD_PRIORITY_LOW, false ) )
{
msg_Err( p_playlist, "cannot spawn secondary preparse thread" );
vlc_object_release( p_playlist->p->p_fetcher );
// Start the thread
if( vlc_thread_create( p_playlist, "playlist", RunControlThread,
- VLC_THREAD_PRIORITY_LOW, true ) )
+ VLC_THREAD_PRIORITY_LOW, false ) )
{
msg_Err( p_playlist, "cannot spawn playlist thread" );
vlc_object_release( p_playlist );
static void* RunControlThread ( vlc_object_t *p_this )
{
playlist_t *p_playlist = (playlist_t*)p_this;
- /* Tell above that we're ready */
- vlc_thread_ready( p_playlist );
int canc = vlc_savecancel ();
vlc_object_lock( p_playlist );
playlist_preparse_t *p_obj = (playlist_preparse_t*)p_this;
int canc;
- /* Tell above that we're ready */
- vlc_thread_ready( p_obj );
canc = vlc_savecancel ();
playlist_PreparseLoop( p_obj );
vlc_restorecancel (canc);
static void* RunFetcher( vlc_object_t *p_this )
{
playlist_fetcher_t *p_obj = (playlist_fetcher_t *)p_this;
- /* Tell above that we're ready */
- vlc_thread_ready( p_obj );
int canc = vlc_savecancel ();
playlist_FetcherLoop( p_obj );
vlc_restorecancel (canc);