Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
flycast
Commits
e457b122
Commit
e457b122
authored
Apr 15, 2021
by
Libretro-Admin
Browse files
Use retro_sleep to fix libnx build error
parent
5cff0ec4
Pipeline
#20284
failed with stages
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/network/picoppp.cpp
View file @
e457b122
...
...
@@ -27,6 +27,10 @@
#define _POSIX_SOURCE
#endif
#ifdef __LIBRETRO__
#include <retro_timers.h>
#endif
extern
"C"
{
#include <pico_stack.h>
#include <pico_dev_ppp.h>
...
...
@@ -266,7 +270,11 @@ static int modem_write(pico_device *dev, const void *data, int len)
in_buffer_lock
.
unlock
();
if
(
!
pico_thread_running
)
return
0
;
#ifdef __LIBRETRO__
retro_sleep
(
5
);
#else
usleep
(
5000
);
#endif
in_buffer_lock
.
lock
();
}
in_buffer
.
push
(
*
p
++
);
...
...
@@ -995,7 +1003,11 @@ static void *pico_thread_func(void *)
read_native_sockets
();
pico_stack_tick
();
check_dns_entries
();
#ifdef __LIBRETRO__
retro_sleep
(
5
);
#else
usleep
(
5000
);
#endif
}
for
(
auto
it
=
tcp_listening_sockets
.
begin
();
it
!=
tcp_listening_sockets
.
end
();
it
++
)
...
...
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