]> git.sesse.net Git - vlc/commitdiff
Thread priority management on BeOS.
authorEric Petit <titer@videolan.org>
Fri, 10 Jan 2003 17:01:53 +0000 (17:01 +0000)
committerEric Petit <titer@videolan.org>
Fri, 10 Jan 2003 17:01:53 +0000 (17:01 +0000)
include/vlc_threads.h
src/misc/threads.c

index 882131e8c4d43c472fa60556eda63eb990e4a487..af2d06cca19199af5a76e1f9bf7ee9055da4bb8b 100644 (file)
@@ -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>
 #   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
index dc3429ff04ed9c385b3f078b734dd995e856dc2d..269a63b863676281ea0712e94e57f13149ff4cf5 100644 (file)
@@ -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