Remove the HTTP interface thread, and save 20 wakeups per seconds.
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 1 Oct 2007 16:07:17 +0000 (16:07 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 1 Oct 2007 16:07:17 +0000 (16:07 +0000)
The idle HTTP interace is down from 30 to 10 wakeups/s (I think the remaining ones are due to HTTPd core).

modules/control/http/http.c

index c856697..650d157 100644 (file)
@@ -86,7 +86,6 @@ vlc_module_end();
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
-static void Run          ( intf_thread_t *p_intf );
 int  E_(ArtCallback)( httpd_handler_sys_t *p_args,
                           httpd_handler_t *p_handler, char *_p_url,
                           uint8_t *_p_request, int i_type,
@@ -354,7 +353,6 @@ static int Open( vlc_object_t *p_this )
         goto failed;
     }
 
-    p_intf->pf_run = Run;
     free( psz_src );
 
     if( config_GetInt( p_intf, "http-album-art" ) )
@@ -453,18 +451,6 @@ static void Close ( vlc_object_t *p_this )
     pl_Release( p_this );
 }
 
-/*****************************************************************************
- * Run: http interface thread
- *****************************************************************************/
-static void Run( intf_thread_t *p_intf )
-{
-    while( !intf_ShouldDie( p_intf ) )
-    {
-        /* Wait a bit */
-        msleep( INTF_IDLE_SLEEP );
-    }
-}
-
 /****************************************************************************
  * HttpCallback:
  ****************************************************************************