]> git.sesse.net Git - vlc/commitdiff
* include/vlc_threads.h: Priority level VLC_THREAD_PRIORITY_HIGHEST is now
authorChristophe Massiot <massiot@videolan.org>
Fri, 10 Jun 2005 16:12:29 +0000 (16:12 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 10 Jun 2005 16:12:29 +0000 (16:12 +0000)
   available for all platforms.
 * modules/access_output/udp.c: Now runs the output thread at
   VLC_THREAD_PRIORITY_HIGHEST

include/vlc_threads.h
modules/access_output/udp.c

index 724b9920b9f79c9a94ec694b394a1a52439066a4..26c445b0988eaaa7d90a0ce74c838caf31210556 100644 (file)
@@ -75,6 +75,7 @@
 #   define VLC_THREAD_PRIORITY_AUDIO 37
 #   define VLC_THREAD_PRIORITY_VIDEO (-47)
 #   define VLC_THREAD_PRIORITY_OUTPUT 37
+#   define VLC_THREAD_PRIORITY_HIGHEST 37
 
 #elif defined(SYS_BEOS)
 #   define VLC_THREAD_PRIORITY_LOW 5
@@ -82,6 +83,7 @@
 #   define VLC_THREAD_PRIORITY_AUDIO 10
 #   define VLC_THREAD_PRIORITY_VIDEO 5
 #   define VLC_THREAD_PRIORITY_OUTPUT 15
+#   define VLC_THREAD_PRIORITY_HIGHEST 15
 
 #elif defined(PTHREAD_COND_T_IN_PTHREAD_H)
 #   define VLC_THREAD_PRIORITY_LOW 0
@@ -89,6 +91,7 @@
 #   define VLC_THREAD_PRIORITY_AUDIO 10
 #   define VLC_THREAD_PRIORITY_VIDEO 0
 #   define VLC_THREAD_PRIORITY_OUTPUT 30
+#   define VLC_THREAD_PRIORITY_HIGHEST 40
 
 #elif defined(WIN32) || defined(UNDER_CE)
 /* Define different priorities for WinNT/2K/XP and Win9x/Me */
 #   define VLC_THREAD_PRIORITY_AUDIO 0
 #   define VLC_THREAD_PRIORITY_VIDEO 0
 #   define VLC_THREAD_PRIORITY_OUTPUT 0
+#   define VLC_THREAD_PRIORITY_HIGHEST 0
 
 #endif
 
index cec3b199a777dbc06ea9d2c209aedb4dc2654763..28c4ede7a3364dd41ef004b7cf9d5353b980cbcd 100644 (file)
@@ -266,13 +266,8 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->i_mtu = socket_desc.i_mtu;
 
-#ifdef WIN32
     if( vlc_thread_create( p_sys->p_thread, "sout write thread", ThreadWrite,
                            VLC_THREAD_PRIORITY_HIGHEST, VLC_FALSE ) )
-#else
-    if( vlc_thread_create( p_sys->p_thread, "sout write thread", ThreadWrite,
-                           VLC_THREAD_PRIORITY_OUTPUT, VLC_FALSE ) )
-#endif
     {
         msg_Err( p_access->p_sout, "cannot spawn sout access thread" );
         vlc_object_destroy( p_sys->p_thread );