]> git.sesse.net Git - vlc/commitdiff
Do what the previous commit pretended to do
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 26 Feb 2007 16:38:58 +0000 (16:38 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 26 Feb 2007 16:38:58 +0000 (16:38 +0000)
src/network/io.c

index 71dfae0e3a9e2748c0ce8a187510266b81ebd57f..19b8b299f1006b77e6637015e9083810334cccba 100644 (file)
@@ -382,7 +382,8 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
                     goto error;
             }
 #else
-            if (errno == EAGAIN) /* spurious wake-up (sucks if fdc > 1) */
+            /* spurious wake-up or TLS did not yield any actual data */
+            if (errno == EAGAIN)
                 continue;
             goto error;
 #endif
@@ -420,23 +421,6 @@ ssize_t __net_Read( vlc_object_t *restrict p_this, int fd,
 }
 
 
-/*****************************************************************************
- * __net_ReadNonBlock:
- *****************************************************************************
- * Read from a network socket, non blocking mode.
- * This function should only be used after a poll() (or select(), but you
- * should use poll instead of select()) invocation to avoid busy loops.
- *****************************************************************************/
-ssize_t __net_ReadNonBlock( vlc_object_t *restrict p_this, int fd,
-                            const v_socket_t *restrict p_vs,
-                            uint8_t *restrict buf, size_t len )
-{
-    return net_ReadInner (p_this, 1, &(int){ fd },
-                          &(const v_socket_t *){ p_vs },
-                          buf, len, VLC_TRUE, VLC_FALSE);
-}
-
-
 /*****************************************************************************
  * __net_Select:
  *****************************************************************************