Added some basic asyncio stuff. (0.39.12)
This commit is contained in:
parent
6a16e5fb45
commit
cb3eb0a498
9 changed files with 328 additions and 1 deletions
8
src/vm.c
8
src/vm.c
|
|
@ -36,6 +36,9 @@
|
|||
#include <unistd.h>
|
||||
/* For hidden input (password) handling in OP_INPUT_LINE */
|
||||
#include <termios.h>
|
||||
/* For non-blocking sockets and polling */
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
// #include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -857,6 +860,11 @@ void vm_run(VM *vm, Bytecode *entry) {
|
|||
#include "vm/os/socket_unix_connect.c"
|
||||
#include "vm/os/socket_unix_listen.c"
|
||||
|
||||
/* Async-friendly FD helpers (UNIX) */
|
||||
#include "vm/os/fd_set_nonblock.c"
|
||||
#include "vm/os/fd_poll_read.c"
|
||||
#include "vm/os/fd_poll_write.c"
|
||||
|
||||
#ifdef FUN_WITH_PCSC
|
||||
#include "vm/pcsc/connect.c"
|
||||
#include "vm/pcsc/disconnect.c"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue