* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.64 2003/03/04 22:36:18 hartman Exp $
+ * $Id: intf.m,v 1.65 2003/03/04 23:36:57 massiot Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
[NSTimer scheduledTimerWithTimeInterval: 0.5
target: self selector: @selector(manageIntf:)
- userInfo: nil repeats: TRUE];
+ userInfo: nil repeats: FALSE];
[NSThread detachNewThreadSelector: @selector(manage)
toTarget: self withObject: nil];
vlc_object_release( p_playlist );
[self updateMessageArray];
+
+ [NSTimer scheduledTimerWithTimeInterval: 0.5
+ target: self selector: @selector(manageIntf:)
+ userInfo: nil repeats: FALSE];
}
- (void)updateMessageArray
* libvlc.c: main libvlc source
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.69 2003/03/03 14:21:08 gbazin Exp $
+ * $Id: libvlc.c,v 1.70 2003/03/04 23:36:57 massiot Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
{
return i_ret;
}
- vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
/* Now that the thread system is initialized, we don't have much, but
* at least we have var_Create */
{
return VLC_EGENERIC;
}
+ vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
p_vlc->psz_object_name = "root";
* libvlc.h: main libvlc header
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.h,v 1.45 2003/02/20 16:07:38 gbazin Exp $
+ * $Id: libvlc.h,v 1.46 2003/03/04 23:36:57 massiot Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
add_integer( "win9x-cv-method", 0, NULL, WIN9X_CV_TEXT, WIN9X_CV_LONGTEXT, VLC_TRUE );
#endif
+#if defined(SYS_DARWIN)
+ add_integer( "rt-priority", 1, NULL, NULL, NULL, VLC_TRUE );
+#endif
+
/* Usage (mainly useful for cmd line stuff) */
add_usage_hint( PLAYLIST_USAGE );
* threads.c : threads implementation for the VideoLAN client
*****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
- * $Id: threads.c,v 1.38 2003/03/02 01:35:30 gbazin Exp $
+ * $Id: threads.c,v 1.39 2003/03/04 23:36:57 massiot Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
i_ret = pthread_create( &p_this->thread_id, NULL, func, p_data );
+#ifdef SYS_DARWIN
if ( i_priority )
{
int i_error;
struct sched_param param;
memset( ¶m, 0, sizeof(struct sched_param) );
- param.sched_priority = i_priority;
+ param.sched_priority = config_GetInt( p_this, "rt-priority" );
if ( (i_error = pthread_setschedparam( p_this->thread_id,
SCHED_RR, ¶m )) )
{
}
}
+#endif
#elif defined( HAVE_CTHREADS_H )
p_this->thread_id = cthread_fork( (cthread_fn_t)func, (any_t)p_data );
}
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
+
+#ifdef SYS_DARWIN
if ( i_priority )
{
int i_error;
struct sched_param param;
memset( ¶m, 0, sizeof(struct sched_param) );
- param.sched_priority = i_priority;
+ param.sched_priority = config_GetInt( p_this, "rt-priority" );
if ( (i_error = pthread_setschedparam( pthread_self(),
SCHED_RR, ¶m )) )
{
i_priority = 0;
}
}
+#endif
#endif