Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
b5ed36d3
Commit
b5ed36d3
authored
Feb 26, 2007
by
Rémi Denis-Courmont
Browse files
Do what the previous commit pretended to do
parent
6f087f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/network/io.c
View file @
b5ed36d3
...
...
@@ -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:
*****************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment