Commit 2951522c authored by Eric Petit's avatar Eric Petit

Thread priority management on BeOS.

parent 9e17707a
......@@ -3,7 +3,7 @@
* This header provides portable declarations for mutexes & conditions
*****************************************************************************
* Copyright (C) 1999, 2002 VideoLAN
* $Id: vlc_threads.h,v 1.20 2003/01/05 16:23:57 massiot Exp $
* $Id: vlc_threads.h,v 1.21 2003/01/10 17:01:53 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
......@@ -91,6 +91,13 @@
# define VLC_THREAD_PRIORITY_HIGHEST \
(IS_WINNT ? THREAD_PRIORITY_TIME_CRITICAL : 0)
#elif defined(SYS_BEOS)
# define VLC_THREAD_PRIORITY_LOW 5
# define VLC_THREAD_PRIORITY_INPUT 10
# define VLC_THREAD_PRIORITY_AUDIO 120
# define VLC_THREAD_PRIORITY_VIDEO 15
# define VLC_THREAD_PRIORITY_OUTPUT 15
#else
# define VLC_THREAD_PRIORITY_LOW 0
# define VLC_THREAD_PRIORITY_INPUT 0
......
......@@ -2,7 +2,7 @@
* threads.c : threads implementation for the VideoLAN client
*****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: threads.c,v 1.33 2003/01/09 23:43:07 massiot Exp $
* $Id: threads.c,v 1.34 2003/01/10 17:01:53 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
......@@ -627,7 +627,7 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
#elif defined( HAVE_KERNEL_SCHEDULER_H )
p_this->thread_id = spawn_thread( (thread_func)func, psz_name,
B_NORMAL_PRIORITY, (void *)p_this );
i_priority/* B_NORMAL_PRIORITY */, (void *)p_this );
i_ret = resume_thread( p_this->thread_id );
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment